12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- {
- "name": "@napi-rs/package-template",
- "version": "0.0.8",
- "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"],
- "napi": {
- "name": "package-template"
- },
- "engines": {
- "node": ">= 8.9"
- },
- "publishConfig": {
- "registry": "https://registry.npmjs.org/",
- "access": "public"
- },
- "scripts": {
- "artifacts": "napi artifacts",
- "build": "cargo build --release && napi build --platform --release",
- "build:debug": "cargo build && napi --platform",
- "format": "run-p format:md format:json format:yaml format:source format:rs",
- "format:md": "prettier --parser markdown --write './**/*.md'",
- "format:json": "prettier --parser json --write './**/*.json'",
- "format:rs": "cargo fmt",
- "format:source": "prettier --config ./package.json --write './**/*.{js,ts}'",
- "format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'",
- "lint": "eslint . -c ./.eslintrc.yml './**/*.{ts,tsx,js}'",
- "prepublishOnly": "napi prepublish -t npm",
- "test": "ava",
- "version": "napi version"
- },
- "devDependencies": {
- "@octokit/rest": "^18.0.6",
- "@swc-node/register": "^0.4.11",
- "@typescript-eslint/eslint-plugin": "^4.2.0",
- "@typescript-eslint/parser": "^4.2.0",
- "ava": "^3.12.1",
- "chalk": "^4.1.0",
- "eslint": "^7.9.0",
- "eslint-config-prettier": "^6.11.0",
- "eslint-plugin-import": "^2.22.0",
- "eslint-plugin-prettier": "^3.1.4",
- "eslint-plugin-react": "^7.21.1",
- "eslint-plugin-react-hooks": "^4.1.2",
- "eslint-plugin-sonarjs": "^0.5.0",
- "husky": "^4.3.0",
- "lint-staged": "^10.4.0",
- "napi-rs": "^0.3.8",
- "npm-run-all": "^4.1.5",
- "prettier": "^2.1.2",
- "putasset": "^5.0.3",
- "typescript": "^4.0.3"
- },
- "dependencies": {
- "@node-rs/helper": "^0.4.0"
- },
- "lint-staged": {
- "*.@(js|ts|tsx)": ["prettier --write", "eslint -c .eslintrc.yml --fix"],
- "*.@(yml|yaml)": ["prettier --parser yaml --write"],
- "*.md": ["prettier --parser markdown --write"],
- "*.json": ["prettier --parser json --write"]
- },
- "ava": {
- "require": ["@swc-node/register"],
- "extensions": ["ts"]
- },
- "prettier": {
- "printWidth": 120,
- "semi": false,
- "trailingComma": "all",
- "singleQuote": true,
- "arrowParens": "always",
- "parser": "typescript"
- },
- "husky": {
- "hooks": {
- "pre-commit": "lint-staged"
- }
- }
- }
|