-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
49 lines (49 loc) · 1.5 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
38
39
40
41
42
43
44
45
46
47
48
49
{
"name": "held-karp",
"version": "1.0.12",
"description": "Highly optimized exact solutions to the traveling salesman problem using the Held–Karp algorithm",
"type": "module",
"exports": {
".": "./src/js-impl/index.js",
"./wasm": "./src/wasm-impl/index.js"
},
"keywords": [
"traveling salesman",
"travelling salesman",
"problem",
"TSP",
"Hamiltonian",
"path",
"cycle",
"Held-Karp",
"algorithm",
"NP-hard"
],
"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": "^122.0.0",
"c8": "^10.1.2",
"eslint": "^9.14.0",
"mocha": "^11.0.1",
"neostandard": "^0.11.8",
"wabt": "^1.0.36"
},
"files": [
"src"
]
}