98 lines
2.8 KiB
JSON
98 lines
2.8 KiB
JSON
{
|
|
"name": "napi-rs",
|
|
"version": "0.0.0",
|
|
"description": "A minimal library for building compiled Node add-ons in Rust.",
|
|
"workspaces": [
|
|
"bench",
|
|
"cli",
|
|
"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": "cross-env TS_NODE_PROJECT='./bench/tsconfig.json' node -r ts-node/register/transpile-only bench/bench.ts",
|
|
"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": "eslint -c .eslintrc.yml .",
|
|
"test": "lerna run test --ignore @napi-rs/cli",
|
|
"test:cli": "yarn workspace @napi-rs/cli test",
|
|
"test:electron": "electron examples/napi/electron.js",
|
|
"test:macro": "cargo test -p napi-examples",
|
|
"test:memory": "node memory-testing/index.mjs",
|
|
"postinstall": "husky install",
|
|
"prepublish": "yarn build"
|
|
},
|
|
"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)": [
|
|
"eslint --fix"
|
|
],
|
|
"*.@(js||ts|json|md|yml|yaml)": [
|
|
"prettier --write"
|
|
],
|
|
"*.toml": [
|
|
"taplo format"
|
|
],
|
|
"*.rs": [
|
|
"cargo fmt --"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "workspace:*",
|
|
"@rollup/plugin-alias": "^5.0.0",
|
|
"@rollup/plugin-commonjs": "^25.0.3",
|
|
"@rollup/plugin-json": "^6.0.0",
|
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
"@rollup/plugin-replace": "^5.0.2",
|
|
"@taplo/cli": "^0.5.2",
|
|
"@types/debug": "^4.1.8",
|
|
"@types/lodash-es": "^4.17.8",
|
|
"@types/node": "^20.4.2",
|
|
"@types/sinon": "^10.0.15",
|
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
"@typescript-eslint/parser": "^6.0.0",
|
|
"ava": "^5.3.1",
|
|
"c8": "^8.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"electron": "26.1.0",
|
|
"esbuild": "^0.19.0",
|
|
"eslint": "^8.45.0",
|
|
"eslint-config-prettier": "^9.0.0",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"husky": "^8.0.3",
|
|
"lerna": "^7.1.4",
|
|
"lint-staged": "^14.0.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^3.0.0",
|
|
"shx": "^0.3.4",
|
|
"sinon": "^15.2.0",
|
|
"source-map-support": "^0.5.21",
|
|
"ts-node": "^10.9.1",
|
|
"tslib": "^2.6.0",
|
|
"typescript": "^5.1.6"
|
|
},
|
|
"packageManager": "yarn@3.6.3"
|
|
}
|