X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=017ca1b9bee2ea0a1ee01ec6939248a7a23f0a3a;hb=da3098610d6cf6155bbbe53c84b6ac6ccd400ff5;hp=b1197e910e1cc524ab56265fd436579dbee6914f;hpb=f1dbb0298c801c77783a55d588f2d60148f23f1e;p=poolifier.git diff --git a/rollup.config.mjs b/rollup.config.mjs index b1197e91..017ca1b9 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -26,7 +26,6 @@ export default { ...(isDevelopmentBuild ? { dir: 'lib' } : { file: 'lib/index.mjs' }), format: 'esm', sourcemap: !!isDevelopmentBuild, - ...(isDevelopmentBuild && { entryFileNames: '[name].mjs', preserveModules: true, @@ -35,7 +34,14 @@ export default { ...(!isDevelopmentBuild && { plugins: [terser({ maxWorkers: 2 })] }) } ], - external: ['async_hooks', 'cluster', 'events', 'os', 'worker_threads'], + external: [ + 'node:async_hooks', + 'node:cluster', + 'node:crypto', + 'node:events', + 'node:os', + 'node:worker_threads' + ], plugins: [ typescript({ tsconfig: isDevelopmentBuild @@ -46,6 +52,6 @@ export default { targets: ['lib/*'] }), isAnalyze && analyze(), - isDocumentation && command('npm run typedoc') + isDocumentation && command('pnpm run typedoc') ] }