-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
38 lines (38 loc) · 1.28 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
{
"name": "kdtree-wasm",
"version": "1.0.1",
"description": "",
"keywords": ["kdtree", "wasm", "javascript", "typescript"],
"main": "dist/node/kdtree_wasm.js",
"browser": "dist/web/kdtree_wasm.js",
"module": "dist/bundler/kdtree_wasm.js",
"types": "dist/node/kdtree_wasm.d.ts",
"files": [
"dist/**/*",
"README.md",
"package.json"
],
"repository": {
"type": "git",
"url": "https://github.com/aresyy/kdtree-wasm"
},
"scripts": {
"build": "npm run build:node && npm run build:bundler && npm run build:web",
"build:bundler": "wasm-pack build --target bundler --release --out-dir dist/bundler && rm dist/bundler/.gitignore && npx ts-node js/wrapper.ts",
"build:node": "wasm-pack build --target nodejs --release --out-dir dist/node && rm dist/node/.gitignore",
"build:web": "wasm-pack build --target no-modules --release --out-dir dist/web && rm dist/web/.gitignore",
"test": "npm run test:wasm-pack && npm run test:jest",
"test:wasm-pack": "wasm-pack test --node",
"test:jest": "jest"
},
"author": "aresyy <[email protected]>",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "^20.8.5",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
}