-
-
Notifications
You must be signed in to change notification settings - Fork 276
/
package.json
98 lines (98 loc) · 3.04 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
92
93
94
95
96
97
98
{
"name": "napi-rs",
"version": "0.0.0",
"description": "A minimal library for building compiled Node add-ons in Rust.",
"workspaces": [
"bench",
"cli",
"wasm-runtime",
"triples",
"memory-testing",
"examples/napi",
"examples/napi-compat-mode",
"examples/binary"
],
"repository": {
"type": "git",
"url": "git@github.com:napi-rs/napi-rs.git"
},
"license": "MIT",
"scripts": {
"bench": "cross-env TS_NODE_PROJECT='./bench/tsconfig.json' node -r ts-node/register/transpile-only bench/bench.ts",
"build": "lerna run build --scope '@napi-rs/*'",
"build:bench": "yarn workspace bench build",
"build:memory": "yarn workspace memory-testing build",
"build:test": "lerna run build --stream --concurrency 1 --scope=\"@examples/*\"",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:rs": "cargo fmt",
"format:toml": "taplo format",
"lint": "oxlint --import-plugin --ignore-path=./.oxlintignore --deny-warnings -c oxlint.json",
"test": "yarn workspaces foreach -j 1 -A --exclude \"{cli,napi-rs}\" run test",
"test:bun": "bun test examples/napi/__tests__/values.spec.ts",
"test:cli": "yarn workspace @napi-rs/cli test",
"test:electron": "electron examples/napi/electron.cjs",
"test:macro": "cargo test -p napi-examples",
"test:memory": "node memory-testing/index.mjs",
"postinstall": "husky install",
"prepublish": "yarn build",
"prepare": "husky"
},
"bugs": {
"url": "https://github.com/napi-rs/napi-rs/issues"
},
"homepage": "https://github.com/napi-rs/napi-rs#readme",
"prettier": {
"printWidth": 80,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
},
"lint-staged": {
"*.@(js|ts)": [
"oxlint --import-plugin --ignore-path=./.oxlintignore --deny-warnings -D correctness --fix"
],
"*.@(js||ts|json|md|yml|yaml)": [
"prettier --write"
],
"*.toml": [
"taplo format"
],
"*.rs": [
"cargo fmt --"
]
},
"devDependencies": {
"@napi-rs/cli": "workspace:*",
"@taplo/cli": "^0.7.0",
"@types/debug": "^4.1.12",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.7.5",
"@types/sinon": "^17.0.3",
"ava": "^6.1.3",
"bun-types": "^1.1.30",
"c8": "^10.1.2",
"cross-env": "^7.0.3",
"electron": "^33.0.0",
"esbuild": "^0.24.0",
"husky": "^9.1.6",
"lerna": "^8.1.8",
"lint-staged": "^15.2.10",
"npm-run-all2": "^7.0.0",
"oxlint": "^0.11.0",
"prettier": "^3.3.3",
"rollup": "^4.24.0",
"shx": "^0.3.4",
"sinon": "^19.0.2",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.2",
"tslib": "^2.7.0",
"typescript": "^5.6.3"
},
"packageManager": "yarn@4.5.1",
"resolutions": {
"node-inspect-extracted": "patch:node-inspect-extracted@npm%3A3.0.0#~/.yarn/patches/node-inspect-extracted-npm-3.0.0-f661b6c334.patch",
"buffer@npm:^6.0.3": "patch:buffer@npm%3A6.0.3#~/.yarn/patches/buffer-npm-6.0.3-cd90dfedfe.patch"
}
}