build: only register source map if the build includes it
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 23 Jul 2023 17:36:43 +0000 (19:36 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 23 Jul 2023 17:36:43 +0000 (19:36 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
package.json

index 23290e44ba53720efeee824abc141e04cf51c827..5b1081064ac2b58228a9f5cdc69e2ed0b72ea75e 100644 (file)
@@ -19,7 +19,7 @@
     "build:prod": "rollup --config",
     "benchmark": "pnpm build && node -r source-map-support/register benchmarks/internal/bench.mjs",
     "benchmark:debug": "pnpm build && node -r source-map-support/register --inspect benchmarks/internal/bench.mjs",
-    "benchmark:prod": "pnpm build:prod && node -r source-map-support/register benchmarks/internal/bench.mjs",
+    "benchmark:prod": "pnpm build:prod && benchmarks/internal/bench.mjs",
     "test": "pnpm build && c8 mocha 'tests/**/*.test.js'",
     "test:debug": "pnpm build && mocha --no-parallel --inspect 'tests/**/*.test.js'",
     "coverage": "c8 report --reporter=lcov",