From: Jérôme Benoit Date: Mon, 30 Oct 2023 10:07:18 +0000 (+0100) Subject: build: switch rollup configuration to TS X-Git-Tag: v3.0.6~54 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c2515a41c44109efe5dfcb92db2fbc95dc5912ba;p=poolifier.git build: switch rollup configuration to TS Signed-off-by: Jérôme Benoit --- 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'