Skip to content

Commit c30665d

Browse files
committed
Make installable without a pre-built
1 parent 56c7ead commit c30665d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
"files": [
2626
"index.d.ts",
2727
"build.js",
28-
"index.js"
28+
"index.js",
29+
"cargo.toml",
30+
"src/*"
2931
],
3032
"napi": {
3133
"binaryName": "native-serial",
@@ -53,17 +55,20 @@
5355
"format:prettier": "prettier . -w",
5456
"format:toml": "taplo format",
5557
"format:rs": "cargo fmt",
58+
"install": "npm run build",
5659
"lint": "oxlint .",
5760
"prepublishOnly": "napi prepublish -t npm",
5861
"test": "ava",
5962
"preversion": "napi build --platform --strip --js build.js && git add .",
6063
"version": "napi version",
6164
"prepare": "husky"
6265
},
66+
"dependencies": {
67+
"@napi-rs/cli": "^3.2.0"
68+
},
6369
"devDependencies": {
6470
"@emnapi/core": "^1.5.0",
6571
"@emnapi/runtime": "^1.5.0",
66-
"@napi-rs/cli": "^3.2.0",
6772
"@oxc-node/core": "^0.0.32",
6873
"@taplo/cli": "^0.7.0",
6974
"@tybys/wasm-util": "^0.10.0",

0 commit comments

Comments
 (0)