"scripts": {
"build": "rollup --config",
"start": "node dist/main.cjs",
- "start:esm": "node dist/main.mjs",
+ "start:esm": "node dist/main.js",
"test": "echo \"Error: no test specified\" && exit 1",
"benchmark:echo": "autocannon -c 100 -d 30 -p 10 -m POST -H Content-Type=application/json -b '{\"key1\":\"value1\", \"key2\":\"value2\"}' http://localhost:8080/api/echo",
"benchmark:factorial": "autocannon -c 100 -d 30 -p 10 http://localhost:8080/api/factorial/30"
format: 'cjs',
dir: './dist',
sourcemap: true,
- entryFileNames: '[name].cjs',
- preserveModules: true,
- preserveModulesRoot: './src'
+ entryFileNames: '[name].cjs'
},
{
format: 'esm',
dir: './dist',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: './src'
+ sourcemap: true
}
],
external: ['express', 'node:path', 'node:url', 'poolifier'],
"scripts": {
"build": "rollup --config",
"start": "node dist/main.cjs",
- "start:esm": "node dist/main.mjs",
+ "start:esm": "node dist/main.js",
"test": "echo \"Error: no test specified\" && exit 1",
"benchmark:echo": "autocannon -c 100 -d 30 -p 10 -m POST -H Content-Type=application/json -b '{\"key1\":\"value1\", \"key2\":\"value2\"}' http://localhost:8080/api/echo",
"benchmark:factorial": "autocannon -c 100 -d 30 -p 10 http://localhost:8080/api/factorial/30"
format: 'cjs',
dir: './dist',
sourcemap: true,
- entryFileNames: '[name].cjs',
- preserveModules: true,
- preserveModulesRoot: './src'
+ entryFileNames: '[name].cjs'
},
{
format: 'esm',
dir: './dist',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: './src'
+ sourcemap: true
}
],
external: ['express', 'node:path', 'node:url', 'poolifier'],
format: 'cjs',
dir: './dist',
sourcemap: true,
- entryFileNames: '[name].cjs',
- preserveModules: true,
- preserveModulesRoot: './src'
+ entryFileNames: '[name].cjs'
},
{
format: 'esm',
dir: './dist',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: './src'
+ sourcemap: true
}
],
external: ['fastify', 'node:path', 'node:url', 'poolifier'],
format: 'cjs',
dir: './dist',
sourcemap: true,
- entryFileNames: '[name].cjs',
- preserveModules: true,
- preserveModulesRoot: './src'
+ entryFileNames: '[name].cjs'
},
{
format: 'esm',
dir: './dist',
- sourcemap: true,
- preserveModules: true,
- preserveModulesRoot: './src'
+ sourcemap: true
}
],
external: ['fastify', 'fastify-plugin', 'node:path', 'node:url', 'poolifier'],