From 579a6f2198105a0985b2cd65b178b44600fc8b98 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 30 Sep 2026 17:23:36 -0700 Subject: [PATCH] Add asc compilation scripts and profiling script. --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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", -- 2.52.0