{ "name": "napi-rs", "version": "0.0.0", "description": "A minimal library for building compiled Node add-ons in Rust.", "workspaces": [ "bench", "cli", "wasm-runtime", "triples", "memory-testing", "examples/napi", "examples/napi-compat-mode", "examples/binary" ], "repository": { "type": "git", "url": "git@github.com:napi-rs/napi-rs.git" }, "license": "MIT", "scripts": { "bench": "yarn workspace bench bench", "build": "lerna run build --scope '@napi-rs/*'", "build:bench": "yarn workspace bench build", "build:memory": "yarn workspace memory-testing build", "build:test": "lerna run build --stream --concurrency 1 --scope=\"@examples/*\"", "format": "run-p format:prettier format:rs format:toml", "format:prettier": "prettier . -w", "format:rs": "cargo fmt", "format:toml": "taplo format", "lint": "oxlint --import-plugin --ignore-path=./.oxlintignore --deny-warnings -c oxlint.json", "test": "yarn workspaces foreach -j 1 -A --exclude \"{cli,napi-rs}\" run test", "test:bun": "bun test examples/napi/__tests__/values.spec.ts", "test:cli": "yarn workspace @napi-rs/cli test", "test:electron": "electron examples/napi/electron.cjs", "test:macro": "cargo test -p napi-examples", "test:memory": "node memory-testing/index.mjs", "postinstall": "husky install", "prepublish": "yarn build", "prepare": "husky" }, "bugs": { "url": "https://github.com/napi-rs/napi-rs/issues" }, "homepage": "https://github.com/napi-rs/napi-rs#readme", "prettier": { "printWidth": 80, "semi": false, "singleQuote": true, "trailingComma": "all", "arrowParens": "always" }, "lint-staged": { "*.@(js|ts)": [ "oxlint --import-plugin --ignore-path=./.oxlintignore --deny-warnings -D correctness --fix" ], "*.@(js||ts|json|md|yml|yaml)": [ "prettier --write" ], "*.toml": [ "taplo format" ], "*.rs": [ "cargo fmt --" ] }, "devDependencies": { "@napi-rs/cli": "workspace:*", "@oxc-node/core": "^0.0.29", "@taplo/cli": "^0.7.0", "@types/debug": "^4.1.12", "@types/lodash-es": "^4.17.12", "@types/node": "^22.13.16", "@types/sinon": "^17.0.4", "ava": "^6.2.0", "bun-types": "^1.2.8", "c8": "^10.1.3", "cross-env": "^7.0.3", "electron": "^37.0.0", "esbuild": "^0.25.2", "husky": "^9.1.7", "lerna": "^8.2.1", "lint-staged": "^16.0.0", "npm-run-all2": "^8.0.0", "oxlint": "^1.0.0", "prettier": "^3.5.3", "rollup": "^4.38.0", "shx": "^0.4.0", "sinon": "^21.0.0", "source-map-support": "^0.5.21", "tslib": "^2.8.1", "typescript": "^5.8.2" }, "packageManager": "yarn@4.9.2", "resolutions": { "node-inspect-extracted": "patch:node-inspect-extracted@npm%3A3.0.0#~/.yarn/patches/node-inspect-extracted-npm-3.0.0-f661b6c334.patch", "buffer@npm:^6.0.3": "patch:buffer@npm%3A6.0.3#~/.yarn/patches/buffer-npm-6.0.3-cd90dfedfe.patch" } }