import del from 'rollup-plugin-delete'
export default {
- input: ['src/main.ts', 'src/worker.ts'],
+ input: ['./src/main.ts', './src/worker.ts'],
strictDeprecations: true,
output: [
{
format: 'cjs',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
},
{
format: 'esm',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
}
],
external: ['express', 'node:path', 'node:url', 'poolifier'],
plugins: [
typescript(),
del({
- targets: ['dist/*']
+ targets: ['./dist/*']
})
]
}
export default {
input: [
- 'src/main.ts',
- 'src/express-worker.ts',
- 'src/request-handler-worker.ts'
+ './src/main.ts',
+ './src/express-worker.ts',
+ './src/request-handler-worker.ts'
],
strictDeprecations: true,
output: [
{
format: 'cjs',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
},
{
format: 'esm',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
}
],
external: ['express', 'node:path', 'node:url', 'poolifier'],
plugins: [
typescript(),
del({
- targets: ['dist/*']
+ targets: ['./dist/*']
})
]
}
import del from 'rollup-plugin-delete'
export default {
- input: ['src/main.ts', 'src/worker.ts'],
+ input: ['./src/main.ts', './src/worker.ts'],
strictDeprecations: true,
output: [
{
format: 'cjs',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
},
{
format: 'esm',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
}
],
external: ['fastify', 'node:path', 'node:url', 'poolifier'],
plugins: [
typescript(),
del({
- targets: ['dist/*']
+ targets: ['./dist/*']
})
]
}
export default {
input: [
- 'src/main.ts',
- 'src/fastify-worker.ts',
- 'src/request-handler-worker.ts'
+ './src/main.ts',
+ './src/fastify-worker.ts',
+ './src/request-handler-worker.ts'
],
strictDeprecations: true,
output: [
{
format: 'cjs',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
},
{
format: 'esm',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
}
],
external: ['fastify', 'fastify-plugin', 'node:path', 'node:url', 'poolifier'],
plugins: [
typescript(),
del({
- targets: ['dist/*']
+ targets: ['./dist/*']
})
]
}
import del from 'rollup-plugin-delete'
export default {
- input: ['src/main.ts', 'src/worker.ts'],
+ input: ['./src/main.ts', './src/worker.ts'],
strictDeprecations: true,
output: [
{
format: 'cjs',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
},
{
format: 'esm',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
}
],
external: ['node:path', 'node:url', 'poolifier', 'ws'],
plugins: [
typescript(),
del({
- targets: ['dist/*']
+ targets: ['./dist/*']
})
]
}
export default {
input: [
- 'src/main.ts',
- 'src/websocket-server-worker.ts',
- 'src/request-handler-worker.ts'
+ './src/main.ts',
+ './src/websocket-server-worker.ts',
+ './src/request-handler-worker.ts'
],
strictDeprecations: true,
output: [
{
format: 'cjs',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
entryFileNames: '[name].cjs',
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
},
{
format: 'esm',
- dir: 'dist',
+ dir: './dist',
sourcemap: true,
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
}
],
external: ['node:path', 'node:url', 'poolifier', 'ws'],
plugins: [
typescript(),
del({
- targets: ['dist/*']
+ targets: ['./dist/*']
})
]
}
export default [
{
- input: 'src/index.ts',
+ input: './src/index.ts',
strictDeprecations: true,
output: [
{
format: 'cjs',
...(isDevelopmentBuild && {
- dir: 'lib',
+ dir: './lib',
sourcemap: true,
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
}),
...(!isDevelopmentBuild && {
- file: 'lib/index.js',
+ file: './lib/index.js',
plugins: [terser({ maxWorkers })]
})
},
{
format: 'esm',
...(isDevelopmentBuild && {
- dir: 'lib',
+ dir: './lib',
sourcemap: true,
entryFileNames: '[name].mjs',
preserveModules: true,
- preserveModulesRoot: 'src'
+ preserveModulesRoot: './src'
}),
...(!isDevelopmentBuild && {
- file: 'lib/index.mjs',
+ file: './lib/index.mjs',
plugins: [terser({ maxWorkers })]
})
}
: 'tsconfig.production.json'
}),
del({
- targets: ['lib/*']
+ targets: ['./lib/*']
}),
isAnalyzeBuild && analyze(),
isDocumentationBuild && command('pnpm typedoc')
},
{
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',
plugins: [
dts(),
del({
- targets: ['lib/dts'],
+ targets: ['./lib/dts'],
hook: 'buildEnd'
}),
isAnalyzeBuild && analyze()
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
- "outDir": "lib",
+ "outDir": "./lib",
"moduleResolution": "Node",
"declaration": true,
- "declarationDir": "lib/dts",
+ "declarationDir": "./lib/dts",
"strict": true,
"verbatimModuleSyntax": true,
"forceConsistentCasingInFileNames": true