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 5be459260..ef1b0a14e 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 86ad2c86c..ac0da3262 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 400937b04..888f88993 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 13f6b37dd..9337c5807 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 ff8b8c21f..9504c668d 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 2c07a12fd..ee04284f1 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 eef7b3d18..ccdd21e52 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 a8c4e473c..293d69fc2 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 b14523e41..6a2ff849c 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 2633843c4..ff47feede 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 33267992d..e7419cb39 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 3aa319270..6d2fc34da 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.43.0