diff --git a/build/package-lock.json b/build/package-lock.json index 7c4fb22..970c170 100644 --- a/build/package-lock.json +++ b/build/package-lock.json @@ -19,6 +19,7 @@ "license": "MIT", "devDependencies": { "@paulmillr/jsbt": "0.2.1", + "fast-check": "3.0.0", "micro-bmark": "0.3.1", "micro-should": "0.4.0", "prettier": "3.3.2", diff --git a/build/package.json b/build/package.json index f77e93f..df00b68 100644 --- a/build/package.json +++ b/build/package.json @@ -9,6 +9,7 @@ "esbuild": "0.20.1" }, "scripts": { - "build:release": "npx esbuild --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`" + "build:release": "npx esbuild --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`", + "build:min": "npx esbuild --minify --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`" } } diff --git a/package.json b/package.json index 26a255b..7842741 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "scripts": { "bench": "node benchmark/hashes.js noble; node benchmark/kdf.js noble", "bench:all": "node benchmark/hashes.js; node benchmark/kdf.js", - "bench:install": "npm pack && mv *.tgz benchmark/noble-hashes.tgz && cd benchmark && npm install && cd ..", + "bench:install": "cd benchmark; npm install; npm install .. --install-links", "build": "npm run build:clean; tsc && tsc -p tsconfig.esm.json", "build:clean": "rm -f *.{js,d.ts,js.map,d.ts.map} esm/*.{js,js.map,d.ts.map}", "lint": "prettier --check 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'",