]> git.codecow.com Git - nano-pow.git/commitdiff
Extract build prep into its own script.
authorChris Duncan <chris@zoso.dev>
Sun, 21 Sep 2025 21:54:03 +0000 (14:54 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 21 Sep 2025 21:54:03 +0000 (14:54 -0700)
package.json

index 6682d26134d2e67f60e2c84ee6c9a2a7149e82fe..f6fb77ec04965bbc66f9b8071fd3b6984d842cde 100644 (file)
@@ -43,8 +43,9 @@
        },
        "scripts": {
                "benchmark": "npm run build && ./dist/bin/nano-pow.sh --benchmark 10 --debug",
-               "build": "rm -rf {dist,types} && tsc && npm run generate && node esbuild.mjs && cp -p src/bin/nano-pow.sh dist/bin",
+               "build": "npm run clean && npm run generate && node esbuild.mjs && cp -p src/bin/nano-pow.sh dist/bin",
                "build:dev": "NODE_ENV=development npm run build",
+               "clean": "rm -rf dist types && tsc",
                "generate": "node ./scripts/blake2b-gen.js && asc src/lib/generate/wasm/asm/index.ts",
                "prepare": "npm run build",
                "score": "npm run build && ./dist/bin/nano-pow.sh --effort 4 --benchmark 10 --score 10",