]> git.codecow.com Git - nano25519.git/commitdiff
Add asc compilation scripts and profiling script.
authorChris Duncan <chris@codecow.com>
Thu, 1 Oct 2026 00:23:36 +0000 (17:23 -0700)
committerChris Duncan <chris@codecow.com>
Thu, 1 Oct 2026 00:23:36 +0000 (17:23 -0700)
package.json

index 9ec3d1c6e9af53972a236e03bb0abe3e49c54802..06453eb25063d3a0491a5acc0b3206de5f11d11c 100644 (file)
                "url": "git+https://codecow.com/nano25519.git"
        },
        "scripts": {
+               "asc": "asc ./src/assembly/index.ts --debug && tsc",
+               "asc:prod": "asc ./src/assembly/index.ts && tsc",
                "build": "npm run clean && npm run compile && node ./esbuild/dev.mjs",
-               "build:prod": "npm run clean && npm run compile && node ./esbuild/prod.mjs",
+               "build:prod": "npm run clean && npm run compile:prod && node ./esbuild/prod.mjs",
                "clean": "rm -rf {build,dist}",
-               "compile": "node scripts/blake2b-gen.mjs && asc ./src/assembly/index.ts && tsc",
+               "compile": "node scripts/blake2b-gen.mjs && npm run asc",
+               "compile:prod": "node scripts/blake2b-gen.mjs && npm run asc:prod",
                "prepublishOnly": "npm run test:prod",
+               "profile": "npm run build && node --cpu-prof --cpu-prof-interval 50 --cpu-prof-dir prof test/node.mjs",
                "test": "npm run build && npm run test:all",
                "test:all": "npm run test:le && npm run test:be",
                "test:be": "node --import ./test/big-endian.mjs ./test/node.mjs",