]> zoso.dev Git - libnemo.git/commitdiff
Ship source map for debugging.
authorChris Duncan <chris@zoso.dev>
Fri, 25 Oct 2024 23:11:10 +0000 (16:11 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 25 Oct 2024 23:11:10 +0000 (16:11 -0700)
package.json

index 19e04225aafbcc0ec24f3edc02edcae08964a3fd..0ef5d112c2f40b7cda4283974e10fc0e327c061b 100644 (file)
@@ -39,7 +39,7 @@
                "url": "git+https://zoso.dev/libnemo.git"
        },
        "scripts": {
-               "build": "rm -rf dist && tsc && esbuild dist/main.js --outfile=dist/main.min.js --target=es2022 --format=esm --platform=browser --bundle --minify",
+               "build": "rm -rf dist && tsc && esbuild dist/main.js --outfile=dist/main.min.js --target=es2022 --format=esm --platform=browser --bundle --minify --sourcemap",
                "test": "npm run build && node --test --env-file .env",
                "test:coverage": "npm run test -- --experimental-test-coverage",
                "test:coverage:report": "npm run test:coverage -- --test-reporter=lcov --test-reporter-destination=coverage.info && genhtml coverage.info --output-directory test/coverage && rm coverage.info && xdg-open test/coverage/index.html"