-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
37 lines (37 loc) · 1.27 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"name": "held-karp",
"version": "1.0.9",
"description": "Held-Karp algorithm for the travelling salesman problem",
"type": "module",
"exports": {
".": "./src/js-impl/index.js",
"./wasm": "./src/wasm-impl/index.js"
},
"homepage": "https://github.com/qntm/held-karp",
"repository": {
"type": "git",
"url": "git://github.com/qntm/held-karp.git"
},
"scripts": {
"build": "npx wat2wasm ./src/wasm-impl/hk.wat -o ./src/wasm-impl/hk.wasm && npx wasm-opt ./src/wasm-impl/hk.wasm -O4 -o ./src/wasm-impl/hk-opt.wasm",
"eslint": "eslint .",
"mocha": "c8 --100 node ./node_modules/mocha/bin/mocha.js ./test/**/*.test.js",
"perf": "node ./examples/perf.js",
"tag": "node -e \"require('child_process').spawn('git', ['tag', `v${require('./package.json').version}`], { stdio: 'inherit' })\"",
"tag-and-publish": "npm run tag && git push --tags && npm publish && npm version patch --no-git-tag-version && git add . && git commit -m \"Bump patch\" && git push",
"test": "npm run eslint && npm run mocha"
},
"author": "qntm",
"license": "MIT",
"devDependencies": {
"binaryen": "^121.0.0",
"c8": "^10.1.2",
"eslint": "^9.14.0",
"mocha": "^11.0.1",
"neostandard": "^0.11.8",
"wabt": "^1.0.36"
},
"files": [
"src"
]
}