From: Chris Duncan Date: Thu, 1 Oct 2026 00:23:36 +0000 (-0700) Subject: Add asc compilation scripts and profiling script. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=579a6f2198105a0985b2cd65b178b44600fc8b98;p=nano25519.git Add asc compilation scripts and profiling script. --- diff --git a/package.json b/package.json index 9ec3d1c..06453eb 100644 --- a/package.json +++ b/package.json @@ -31,11 +31,15 @@ "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",