From e4ec185fd36509bf89c8821c9ad9a5d6982503e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 5 Nov 2023 13:10:10 +0100 Subject: [PATCH] build: fix rollup external regexp MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../http-server-pool/express-cluster/rollup.config.ts | 2 +- .../http-server-pool/express-hybrid/rollup.config.ts | 2 +- .../http-server-pool/fastify-cluster/rollup.config.ts | 2 +- .../http-server-pool/fastify-hybrid/rollup.config.ts | 2 +- .../websocket-server-pool/ws-cluster/rollup.config.ts | 2 +- .../websocket-server-pool/ws-hybrid/rollup.config.ts | 2 +- rollup.config.mjs | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) 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({ -- 2.34.1