-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
91 lines (91 loc) · 2.32 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "@speedy-js/source-map",
"version": "0.0.0",
"description": "Speedy source-map",
"main": "node/index.js",
"types": "index.d.ts",
"repository": "https://github.com/speedy-js/napi-template",
"license": "MIT",
"keywords": [
"sourcemap",
"speedy",
"napi",
"N-API",
"napi-rs",
"WebAssembly",
"wasm"
],
"files": [
"index.d.ts",
"wasm-bindings.js",
"node/binding.js",
"node/binding.d.ts",
"node/index.js",
"node/index.d.ts",
"wasm/pkg-web",
"wasm/pkg-node"
],
"browser": {
"node/index.js": "wasm/pkg-web/index.js",
"wasm-bindings.js": "wasm/pkg-web/index.js"
},
"workspaces": [
"node",
"benchmark"
],
"scripts": {
"bench": "node -r @swc-node/register benchmark/bench.ts",
"artifacts": "napi artifacts",
"prepublishOnly": "napi prepublish -t npm && esbuild --minify --outfile=node/binding.js --allow-overwrite node/binding.js",
"build:node": "pnpm build --dir node",
"build:wasm": "pnpm build --dir wasm",
"build": "pnpm build:node && pnpm build:wasm",
"format": "prettier . -w",
"lint": "echo lint",
"test": "pnpm test:node && pnpm test:wasm",
"test:node": "mocha -r @swc-node/register node/**/__tests__/**/*.spec.ts",
"test:wasm": "mocha -r @swc-node/register wasm/**/__tests__/**/*.spec.ts"
},
"devDependencies": {
"@napi-rs/cli": "^2.0.0",
"@swc-node/register": "^1.4.0",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.12",
"chalk": "^4.1.2",
"esbuild": "^0.14.2",
"husky": "^7.0.4",
"lint-staged": "^12.0.2",
"mocha": "^9.1.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"typescript": "^4.4.4"
},
"prettier": {
"printWidth": 80,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
},
"napi": {
"name": "speedy-sourcemap",
"triples": {
"defaults": true,
"additional": [
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"i686-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"x86_64-unknown-freebsd",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"aarch64-linux-android",
"armv7-linux-androideabi"
]
}
},
"engines": {
"node": ">= 10"
}
}