"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",