"start:flameprof": "cross-env NODE_ENV=production clinic flame -- node -r source-map-support/register dist/start.js",
"start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node -r source-map-support/register dist/start.js",
"start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node -r source-map-support/register dist/start.js",
- "rollup": "pnpm build-requirements && rollup --config",
+ "rollup": "pnpm build-requirements && rollup --config --configPlugin typescript",
"build": "pnpm rollup",
"build:cf": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm rollup",
"build:dev": "pnpm rollup --environment BUILD:development",
-/* eslint-disable n/no-unpublished-import */
import * as os from 'node:os';
import { env } from 'node:process';
import analyze from 'rollup-plugin-analyzer';
import del from 'rollup-plugin-delete';
-const availableParallelism = () => {
- // eslint-disable-next-line no-shadow
+const availableParallelism = (): number => {
+ // eslint-disable-next-line @typescript-eslint/no-shadow
let availableParallelism = 1;
try {
availableParallelism = os.availableParallelism();
'assets/ui-protocol/**/*',
],
}),
- isAnalyzeBuild && analyze(),
+ Boolean(isAnalyzeBuild) && analyze(),
],
});