build: fix rollup external regexp
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 5 Nov 2023 12:10:10 +0000 (13:10 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 5 Nov 2023 12:10:10 +0000 (13:10 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
examples/typescript/http-server-pool/express-cluster/rollup.config.ts
examples/typescript/http-server-pool/express-hybrid/rollup.config.ts
examples/typescript/http-server-pool/fastify-cluster/rollup.config.ts
examples/typescript/http-server-pool/fastify-hybrid/rollup.config.ts
examples/typescript/websocket-server-pool/ws-cluster/rollup.config.ts
examples/typescript/websocket-server-pool/ws-hybrid/rollup.config.ts
rollup.config.mjs

index 1ce8d77b96b80214ac78100648a10731e37061a7..2322cd9a440659670a52fc6805abaa85ac045229 100644 (file)
@@ -19,7 +19,7 @@ export default defineConfig({
       sourcemap: true
     }
   ],
-  external: ['express', /node:*/, 'poolifier'],
+  external: ['express', /^node:*/, 'poolifier'],
   plugins: [
     typescript(),
     del({
index 50b6abd61aadc23b2229599ae836099dccee4a37..b4634483c9f98e83c121c700fb51ca7e056de46a 100644 (file)
@@ -23,7 +23,7 @@ export default defineConfig({
       sourcemap: true
     }
   ],
-  external: ['express', /node:*/, 'poolifier'],
+  external: ['express', /^node:*/, 'poolifier'],
   plugins: [
     typescript(),
     del({
index 50653c74f296b972b7b017602ef77f427ccbe23a..5715e2801444e719ed8265559bb4164dc4183fee 100644 (file)
@@ -19,7 +19,7 @@ export default defineConfig({
       sourcemap: true
     }
   ],
-  external: ['fastify', /node:*/, 'poolifier'],
+  external: ['fastify', /^node:*/, 'poolifier'],
   plugins: [
     typescript(),
     del({
index 4b3e4e63d058bf2136048b1baa1e02e19d331342..da5e1fdbfbc3969066516f090ef030d8a76c92ab 100644 (file)
@@ -23,7 +23,7 @@ export default defineConfig({
       sourcemap: true
     }
   ],
-  external: ['fastify', 'fastify-plugin', /node:*/, 'poolifier'],
+  external: ['fastify', 'fastify-plugin', /^node:*/, 'poolifier'],
   plugins: [
     typescript(),
     del({
index 19e443137f06c61e713b9ee4b998acb126a08b43..f251709f5855e325eb222a448fc81715031208e4 100644 (file)
@@ -19,7 +19,7 @@ export default defineConfig({
       sourcemap: true
     }
   ],
-  external: [/node:*/, 'poolifier', 'ws'],
+  external: [/^node:*/, 'poolifier', 'ws'],
   plugins: [
     typescript(),
     del({
index d4d28a19f6f3815039d2aaac567a86aad4b013c0..97efb44f27e6e75f40ccf2ad17be198062a98ea4 100644 (file)
@@ -23,7 +23,7 @@ export default defineConfig({
       sourcemap: true
     }
   ],
-  external: [/node:*/, 'poolifier', 'ws'],
+  external: [/^node:*/, 'poolifier', 'ws'],
   plugins: [
     typescript(),
     del({
index 1eca9997c4ef4ddbf26b03f095c89f0491bdff4d..d4af3f3ff624310388649f22934a60e7cf867d18 100644 (file)
@@ -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({