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 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'