From: Jérôme Benoit Date: Sun, 5 Nov 2023 12:10:10 +0000 (+0100) Subject: build: fix rollup external regexp X-Git-Tag: v3.0.6~42 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e4ec185fd36509bf89c8821c9ad9a5d6982503e8;p=poolifier.git build: fix rollup external regexp Signed-off-by: Jérôme Benoit --- diff --git a/examples/typescript/http-server-pool/express-cluster/rollup.config.ts b/examples/typescript/http-server-pool/express-cluster/rollup.config.ts index 1ce8d77b..2322cd9a 100644 --- a/examples/typescript/http-server-pool/express-cluster/rollup.config.ts +++ b/examples/typescript/http-server-pool/express-cluster/rollup.config.ts @@ -19,7 +19,7 @@ export default defineConfig({ sourcemap: true } ], - external: ['express', /node:*/, 'poolifier'], + external: ['express', /^node:*/, 'poolifier'], plugins: [ typescript(), del({ diff --git a/examples/typescript/http-server-pool/express-hybrid/rollup.config.ts b/examples/typescript/http-server-pool/express-hybrid/rollup.config.ts index 50b6abd6..b4634483 100644 --- a/examples/typescript/http-server-pool/express-hybrid/rollup.config.ts +++ b/examples/typescript/http-server-pool/express-hybrid/rollup.config.ts @@ -23,7 +23,7 @@ export default defineConfig({ sourcemap: true } ], - external: ['express', /node:*/, 'poolifier'], + external: ['express', /^node:*/, 'poolifier'], plugins: [ typescript(), del({ diff --git a/examples/typescript/http-server-pool/fastify-cluster/rollup.config.ts b/examples/typescript/http-server-pool/fastify-cluster/rollup.config.ts index 50653c74..5715e280 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/rollup.config.ts +++ b/examples/typescript/http-server-pool/fastify-cluster/rollup.config.ts @@ -19,7 +19,7 @@ export default defineConfig({ sourcemap: true } ], - external: ['fastify', /node:*/, 'poolifier'], + external: ['fastify', /^node:*/, 'poolifier'], plugins: [ typescript(), del({ diff --git a/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts b/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts index 4b3e4e63..da5e1fdb 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts @@ -23,7 +23,7 @@ export default defineConfig({ sourcemap: true } ], - external: ['fastify', 'fastify-plugin', /node:*/, 'poolifier'], + external: ['fastify', 'fastify-plugin', /^node:*/, 'poolifier'], plugins: [ typescript(), del({ diff --git a/examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts b/examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts index 19e44313..f251709f 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts +++ b/examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts @@ -19,7 +19,7 @@ export default defineConfig({ sourcemap: true } ], - external: [/node:*/, 'poolifier', 'ws'], + external: [/^node:*/, 'poolifier', 'ws'], plugins: [ typescript(), del({ diff --git a/examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.ts b/examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.ts index d4d28a19..97efb44f 100644 --- a/examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.ts +++ b/examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.ts @@ -23,7 +23,7 @@ export default defineConfig({ sourcemap: true } ], - external: [/node:*/, 'poolifier', 'ws'], + external: [/^node:*/, 'poolifier', 'ws'], plugins: [ typescript(), del({ diff --git a/rollup.config.mjs b/rollup.config.mjs index 1eca9997..d4af3f3f 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -66,7 +66,7 @@ export default defineConfig([ }) } ], - external: [/node:*/], + external: [/^node:*/], plugins: [ typescript({ tsconfig: './tsconfig.build.json', @@ -84,7 +84,7 @@ export default defineConfig([ { input: './lib/dts/index.d.ts', output: [{ format: 'esm', file: './lib/index.d.ts' }], - external: [/node:*/], + external: [/^node:*/], plugins: [ dts(), del({