rs-diff/package.json

64 lines
1.7 KiB
JSON
Raw Normal View History

2020-08-14 08:11:58 +00:00
{
2020-08-27 03:56:54 +00:00
"name": "@mtfos/rs-diff",
"version": "0.0.3",
2020-08-14 08:11:58 +00:00
"description": "Template project for writing node package with napi-rs",
2020-08-25 03:38:13 +00:00
"author": "Jay <jay@trj.tw>",
2020-08-14 08:11:58 +00:00
"main": "index.js",
2020-08-25 03:10:05 +00:00
"repository": "https://git.trj.tw/nodejs/rs-diff.git",
2020-08-14 08:11:58 +00:00
"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": {
2020-08-27 03:56:54 +00:00
"@mtfos:registry": "https://gitlab.trj.tw/api/v4/projects/4/packages/npm/"
2020-08-14 08:11:58 +00:00
},
"scripts": {
2020-08-25 03:10:05 +00:00
"build": "cargo build --release && napi build --platform --release ./index",
"build:debug": "cargo build && napi build --platform ./index",
2020-08-14 08:11:58 +00:00
"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"
}
2020-08-25 03:38:13 +00:00
},
"optionalDependencies": {
2020-08-27 03:56:54 +00:00
"@mtfos/rs-diff-darwin": "^0.0.3",
"@mtfos/rs-diff-linux": "^0.0.3"
2020-08-14 08:11:58 +00:00
}
}