From 93dd056a09f69175587201245069b0feb9703ea4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 23 Jul 2023 19:36:43 +0200 Subject: [PATCH] build: only register source map if the build includes it MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 23290e44..5b108106 100644 --- a/package.json +++ b/package.json @@ -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", -- 2.34.1