123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- {
- "name": "@napi-rs/package-template",
- "version": "1.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"],
- "napi": {
- "name": "package-template",
- "triples": {
- "defaults": true,
- "additional": [
- "x86_64-unknown-linux-musl",
- "aarch64-unknown-linux-gnu",
- "i686-pc-windows-msvc",
- "armv7-unknown-linux-gnueabihf",
- "aarch64-apple-darwin",
- "aarch64-linux-android",
- "x86_64-unknown-freebsd",
- "aarch64-unknown-linux-musl",
- "aarch64-pc-windows-msvc"
- ]
- }
- },
- "engines": {
- "node": ">= 10"
- },
- "publishConfig": {
- "registry": "https://registry.npmjs.org/",
- "access": "public"
- },
- "scripts": {
- "artifacts": "napi artifacts",
- "bench": "node -r @swc-node/register benchmark/bench.ts",
- "build": "napi build --platform --release",
- "build:debug": "napi build --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": {
- "@napi-rs/cli": "^1.3.4",
- "@swc-node/register": "^1.3.6",
- "@typescript-eslint/eslint-plugin": "^5.2.0",
- "@typescript-eslint/parser": "^5.2.0",
- "ava": "^3.15.0",
- "benny": "^3.7.1",
- "chalk": "^4.1.2",
- "eslint": "^8.1.0",
- "eslint-config-prettier": "^8.3.0",
- "eslint-plugin-import": "^2.25.2",
- "eslint-plugin-prettier": "^4.0.0",
- "eslint-plugin-sonarjs": "^0.10.0",
- "husky": "^7.0.4",
- "lint-staged": "^11.2.6",
- "npm-run-all": "^4.1.5",
- "prettier": "^2.4.1",
- "typescript": "^4.4.4"
- },
- "dependencies": {
- "@node-rs/helper": "^1.2.1"
- },
- "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"],
- "environmentVariables": {
- "TS_NODE_PROJECT": "./tsconfig.json"
- }
- },
- "prettier": {
- "printWidth": 120,
- "semi": false,
- "trailingComma": "all",
- "singleQuote": true,
- "arrowParens": "always",
- "parser": "typescript"
- }
- }
|