60 lines
1.6 KiB
JSON
60 lines
1.6 KiB
JSON
|
{
|
||
|
"name": "@napi-rs/package-template",
|
||
|
"version": "0.0.6",
|
||
|
"description": "Template project for writing node package with napi-rs",
|
||
|
"main": "index.js",
|
||
|
"repository": "git@github.com:napi-rs/package-template.git",
|
||
|
"license": "MIT",
|
||
|
"keywords": ["napi-rs", "NAPI", "N-API", "Rust", "node-addon", "node-addon-api"],
|
||
|
"files": ["index.d.ts", "index.js"],
|
||
|
"os": ["darwin", "linux", "win32"],
|
||
|
"cpu": ["x64"],
|
||
|
"engines": {
|
||
|
"node": ">= 8.9"
|
||
|
},
|
||
|
"publishConfig": {
|
||
|
"registry": "https://registry.npmjs.org/",
|
||
|
"access": "public"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"build": "cargo build --release && napi --platform --release ./index",
|
||
|
"build:debug": "cargo build && napi --platform ./index",
|
||
|
"prepublishOnly": "node ./scripts/publish.js",
|
||
|
"test": "ava",
|
||
|
"version": "node ./scripts/version.js"
|
||
|
},
|
||
|
"devDependencies": {
|
||
|
"@octokit/rest": "^18.0.3",
|
||
|
"ava": "^3.11.1",
|
||
|
"chalk": "^4.1.0",
|
||
|
"husky": "^4.2.5",
|
||
|
"lint-staged": "^10.2.11",
|
||
|
"napi-rs": "^0.2.4",
|
||
|
"prettier": "^2.0.5",
|
||
|
"putasset": "^5.0.3",
|
||
|
"typescript": "^3.9.7"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"@node-rs/helper": "^0.2.1"
|
||
|
},
|
||
|
"lint-staged": {
|
||
|
"*.@(js|ts|tsx)": ["prettier --write"],
|
||
|
"*.@(yml|yaml)": ["prettier --parser yaml --write"],
|
||
|
"*.md": ["prettier --parser markdown --write"],
|
||
|
"*.json": ["prettier --parser json --write"]
|
||
|
},
|
||
|
"prettier": {
|
||
|
"printWidth": 120,
|
||
|
"semi": false,
|
||
|
"trailingComma": "all",
|
||
|
"singleQuote": true,
|
||
|
"arrowParens": "always",
|
||
|
"parser": "typescript"
|
||
|
},
|
||
|
"husky": {
|
||
|
"hooks": {
|
||
|
"pre-commit": "lint-staged"
|
||
|
}
|
||
|
}
|
||
|
}
|