repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-cluster...
[poolifier.git]
/
rollup.config.mjs
diff --git
a/rollup.config.mjs
b/rollup.config.mjs
index b1386fbdd0dea8c352c0dad28b9dac9e309be252..e0c97bd6e4ebe607ec56d4c526c43206a6215393 100644
(file)
--- a/
rollup.config.mjs
+++ b/
rollup.config.mjs
@@
-27,33
+27,33
@@
const maxWorkers = Math.floor(availableParallelism() / 2)
export default [
{
export default [
{
- input: 'src/index.ts',
+ input: '
./
src/index.ts',
strictDeprecations: true,
output: [
{
format: 'cjs',
...(isDevelopmentBuild && {
strictDeprecations: true,
output: [
{
format: 'cjs',
...(isDevelopmentBuild && {
- dir: 'lib',
+ dir: '
./
lib',
sourcemap: true,
preserveModules: true,
sourcemap: true,
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: '
./
src'
}),
...(!isDevelopmentBuild && {
}),
...(!isDevelopmentBuild && {
- file: 'lib/index.js',
+ file: '
./
lib/index.js',
plugins: [terser({ maxWorkers })]
})
},
{
format: 'esm',
...(isDevelopmentBuild && {
plugins: [terser({ maxWorkers })]
})
},
{
format: 'esm',
...(isDevelopmentBuild && {
- dir: 'lib',
+ dir: '
./
lib',
sourcemap: true,
entryFileNames: '[name].mjs',
preserveModules: true,
sourcemap: true,
entryFileNames: '[name].mjs',
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: '
./
src'
}),
...(!isDevelopmentBuild && {
}),
...(!isDevelopmentBuild && {
- file: 'lib/index.mjs',
+ file: '
./
lib/index.mjs',
plugins: [terser({ maxWorkers })]
})
}
plugins: [terser({ maxWorkers })]
})
}
@@
-71,11
+71,11
@@
export default [
plugins: [
typescript({
tsconfig: isDevelopmentBuild
plugins: [
typescript({
tsconfig: isDevelopmentBuild
- ? 'tsconfig.development.json'
- : 'tsconfig.production.json'
+ ? '
./
tsconfig.development.json'
+ : '
./
tsconfig.production.json'
}),
del({
}),
del({
- targets: ['lib/*']
+ targets: ['
./
lib/*']
}),
isAnalyzeBuild && analyze(),
isDocumentationBuild && command('pnpm typedoc')
}),
isAnalyzeBuild && analyze(),
isDocumentationBuild && command('pnpm typedoc')
@@
-83,7
+83,7
@@
export default [
},
{
input: './lib/dts/index.d.ts',
},
{
input: './lib/dts/index.d.ts',
- output: [{ format: 'esm', file: 'lib/index.d.ts' }],
+ output: [{ format: 'esm', file: '
./
lib/index.d.ts' }],
external: [
'node:async_hooks',
'node:cluster',
external: [
'node:async_hooks',
'node:cluster',
@@
-94,7
+94,7
@@
export default [
plugins: [
dts(),
del({
plugins: [
dts(),
del({
- targets: ['lib/dts'],
+ targets: ['
./
lib/dts'],
hook: 'buildEnd'
}),
isAnalyzeBuild && analyze()
hook: 'buildEnd'
}),
isAnalyzeBuild && analyze()