/* eslint-disable n/no-unpublished-import */
-import os from 'os';
+import { cpus } from 'node:os';
import json from '@rollup/plugin-json';
import terser from '@rollup/plugin-terser';
dir: 'dist',
format: 'esm',
sourcemap: !!isDevelopmentBuild,
- plugins: [terser({ maxWorkers: os.cpus().length / 2 })],
+ plugins: [terser({ maxWorkers: cpus().length / 2 })],
},
],
external: [
'just-clone',
'just-merge',
'mnemonist/lru-map-with-delete.js',
+ 'mnemonist/queue.js',
'moment',
'mongodb',
'node:async_hooks',
json(),
typescript({
tsconfig: 'tsconfig.json',
+ compilerOptions: {
+ sourceMap: !!isDevelopmentBuild,
+ },
}),
del({
targets: [
patterns: 'assets/**/*.json',
exclude: [
'assets/config-template.json',
- 'assets/*config[-_]*.json',
+ 'assets/*config[-_.]*.json',
'assets/idtags-template.json',
+ 'assets/authorization-tags-template.json',
'assets/ui-protocol/**/*',
],
}),