1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- {
- "name": "@napi-rs/package-template",
- "version": "0.0.0",
- "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",
- "prepublish": "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"
- }
- }
- }
|