From c2515a41c44109efe5dfcb92db2fbc95dc5912ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 30 Oct 2023 11:07:18 +0100 Subject: [PATCH] build: switch rollup configuration to TS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../typescript/http-server-pool/express-cluster/package.json | 2 +- .../express-cluster/{rollup.config.mjs => rollup.config.ts} | 1 - .../typescript/http-server-pool/express-hybrid/package.json | 2 +- .../express-hybrid/{rollup.config.mjs => rollup.config.ts} | 1 - .../typescript/http-server-pool/fastify-cluster/package.json | 2 +- .../fastify-cluster/{rollup.config.mjs => rollup.config.ts} | 1 - .../typescript/http-server-pool/fastify-hybrid/package.json | 2 +- .../fastify-hybrid/{rollup.config.mjs => rollup.config.ts} | 1 - .../typescript/websocket-server-pool/ws-cluster/package.json | 2 +- .../ws-cluster/{rollup.config.mjs => rollup.config.ts} | 1 - .../typescript/websocket-server-pool/ws-hybrid/package.json | 2 +- .../ws-hybrid/{rollup.config.mjs => rollup.config.ts} | 1 - 12 files changed, 6 insertions(+), 12 deletions(-) rename examples/typescript/http-server-pool/express-cluster/{rollup.config.mjs => rollup.config.ts} (93%) rename examples/typescript/http-server-pool/express-hybrid/{rollup.config.mjs => rollup.config.ts} (93%) rename examples/typescript/http-server-pool/fastify-cluster/{rollup.config.mjs => rollup.config.ts} (93%) rename examples/typescript/http-server-pool/fastify-hybrid/{rollup.config.mjs => rollup.config.ts} (94%) rename examples/typescript/websocket-server-pool/ws-cluster/{rollup.config.mjs => rollup.config.ts} (93%) rename examples/typescript/websocket-server-pool/ws-hybrid/{rollup.config.mjs => rollup.config.ts} (93%) diff --git a/examples/typescript/http-server-pool/express-cluster/package.json b/examples/typescript/http-server-pool/express-cluster/package.json index 5be45926..ef1b0a14 100644 --- a/examples/typescript/http-server-pool/express-cluster/package.json +++ b/examples/typescript/http-server-pool/express-cluster/package.json @@ -10,7 +10,7 @@ "pnpm": "8.10.0" }, "scripts": { - "build": "rollup --config", + "build": "rollup --config --configPlugin typescript", "start": "node dist/main.cjs", "start:esm": "node dist/main.js", "test": "echo \"Error: no test specified\" && exit 1", diff --git a/examples/typescript/http-server-pool/express-cluster/rollup.config.mjs b/examples/typescript/http-server-pool/express-cluster/rollup.config.ts similarity index 93% rename from examples/typescript/http-server-pool/express-cluster/rollup.config.mjs rename to examples/typescript/http-server-pool/express-cluster/rollup.config.ts index 86ad2c86..ac0da326 100644 --- a/examples/typescript/http-server-pool/express-cluster/rollup.config.mjs +++ b/examples/typescript/http-server-pool/express-cluster/rollup.config.ts @@ -1,4 +1,3 @@ -/* eslint-disable n/no-unpublished-import */ import typescript from '@rollup/plugin-typescript' import del from 'rollup-plugin-delete' import { defineConfig } from 'rollup' diff --git a/examples/typescript/http-server-pool/express-hybrid/package.json b/examples/typescript/http-server-pool/express-hybrid/package.json index 400937b0..888f8899 100644 --- a/examples/typescript/http-server-pool/express-hybrid/package.json +++ b/examples/typescript/http-server-pool/express-hybrid/package.json @@ -10,7 +10,7 @@ "pnpm": "8.10.0" }, "scripts": { - "build": "rollup --config", + "build": "rollup --config --configPlugin typescript", "start": "node dist/main.cjs", "start:esm": "node dist/main.js", "test": "echo \"Error: no test specified\" && exit 1", diff --git a/examples/typescript/http-server-pool/express-hybrid/rollup.config.mjs b/examples/typescript/http-server-pool/express-hybrid/rollup.config.ts similarity index 93% rename from examples/typescript/http-server-pool/express-hybrid/rollup.config.mjs rename to examples/typescript/http-server-pool/express-hybrid/rollup.config.ts index 13f6b37d..9337c580 100644 --- a/examples/typescript/http-server-pool/express-hybrid/rollup.config.mjs +++ b/examples/typescript/http-server-pool/express-hybrid/rollup.config.ts @@ -1,4 +1,3 @@ -/* eslint-disable n/no-unpublished-import */ import typescript from '@rollup/plugin-typescript' import del from 'rollup-plugin-delete' import { defineConfig } from 'rollup' diff --git a/examples/typescript/http-server-pool/fastify-cluster/package.json b/examples/typescript/http-server-pool/fastify-cluster/package.json index ff8b8c21..9504c668 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/package.json +++ b/examples/typescript/http-server-pool/fastify-cluster/package.json @@ -10,7 +10,7 @@ "pnpm": "8.10.0" }, "scripts": { - "build": "rollup --config", + "build": "rollup --config --configPlugin typescript", "start": "node dist/main.cjs", "start:esm": "node dist/main.js", "test": "echo \"Error: no test specified\" && exit 1", diff --git a/examples/typescript/http-server-pool/fastify-cluster/rollup.config.mjs b/examples/typescript/http-server-pool/fastify-cluster/rollup.config.ts similarity index 93% rename from examples/typescript/http-server-pool/fastify-cluster/rollup.config.mjs rename to examples/typescript/http-server-pool/fastify-cluster/rollup.config.ts index 2c07a12f..ee04284f 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/rollup.config.mjs +++ b/examples/typescript/http-server-pool/fastify-cluster/rollup.config.ts @@ -1,4 +1,3 @@ -/* eslint-disable n/no-unpublished-import */ import typescript from '@rollup/plugin-typescript' import del from 'rollup-plugin-delete' import { defineConfig } from 'rollup' diff --git a/examples/typescript/http-server-pool/fastify-hybrid/package.json b/examples/typescript/http-server-pool/fastify-hybrid/package.json index eef7b3d1..ccdd21e5 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/package.json +++ b/examples/typescript/http-server-pool/fastify-hybrid/package.json @@ -10,7 +10,7 @@ "pnpm": "8.10.0" }, "scripts": { - "build": "rollup --config", + "build": "rollup --config --configPlugin typescript", "start": "node dist/main.cjs", "start:esm": "node dist/main.js", "test": "echo \"Error: no test specified\" && exit 1", diff --git a/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.mjs b/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts similarity index 94% rename from examples/typescript/http-server-pool/fastify-hybrid/rollup.config.mjs rename to examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts index a8c4e473..293d69fc 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.mjs +++ b/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts @@ -1,4 +1,3 @@ -/* eslint-disable n/no-unpublished-import */ import typescript from '@rollup/plugin-typescript' import del from 'rollup-plugin-delete' import { defineConfig } from 'rollup' diff --git a/examples/typescript/websocket-server-pool/ws-cluster/package.json b/examples/typescript/websocket-server-pool/ws-cluster/package.json index b14523e4..6a2ff849 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/package.json +++ b/examples/typescript/websocket-server-pool/ws-cluster/package.json @@ -10,7 +10,7 @@ "pnpm": "8.10.0" }, "scripts": { - "build": "rollup --config", + "build": "rollup --config --configPlugin typescript", "start": "node dist/main.cjs", "start:esm": "node dist/main.js", "test": "echo \"Error: no test specified\" && exit 1", diff --git a/examples/typescript/websocket-server-pool/ws-cluster/rollup.config.mjs b/examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts similarity index 93% rename from examples/typescript/websocket-server-pool/ws-cluster/rollup.config.mjs rename to examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts index 2633843c..ff47feed 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/rollup.config.mjs +++ b/examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts @@ -1,4 +1,3 @@ -/* eslint-disable n/no-unpublished-import */ import typescript from '@rollup/plugin-typescript' import del from 'rollup-plugin-delete' import { defineConfig } from 'rollup' diff --git a/examples/typescript/websocket-server-pool/ws-hybrid/package.json b/examples/typescript/websocket-server-pool/ws-hybrid/package.json index 33267992..e7419cb3 100644 --- a/examples/typescript/websocket-server-pool/ws-hybrid/package.json +++ b/examples/typescript/websocket-server-pool/ws-hybrid/package.json @@ -10,7 +10,7 @@ "pnpm": "8.10.0" }, "scripts": { - "build": "rollup --config", + "build": "rollup --config --configPlugin typescript", "start": "node dist/main.cjs", "start:esm": "node dist/main.js", "test": "echo \"Error: no test specified\" && exit 1", diff --git a/examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.mjs b/examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.ts similarity index 93% rename from examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.mjs rename to examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.ts index 3aa31927..6d2fc34d 100644 --- a/examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.mjs +++ b/examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.ts @@ -1,4 +1,3 @@ -/* eslint-disable n/no-unpublished-import */ import typescript from '@rollup/plugin-typescript' import del from 'rollup-plugin-delete' import { defineConfig } from 'rollup' -- 2.34.1