mirror of
https://github.com/napi-rs/node-rs.git
synced 2026-10-29 11:34:33 +08:00
74 lines
2.0 KiB
JSON
74 lines
2.0 KiB
JSON
{
|
|
"name": "node-rs",
|
|
"packageManager": "yarn@3.3.1",
|
|
"version": "0.0.0",
|
|
"description": "Node & Rust bindings monorepo",
|
|
"author": "LongYinan <lynweklm@gmail.com>",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"artifacts": "lerna run artifacts",
|
|
"bench": "lerna run bench --concurrency 1 --stream --no-prefix",
|
|
"build": "lerna run build --concurrency 1 --stream --no-prefix",
|
|
"build:ts": "tsc -b tsconfig.project.json -verbose",
|
|
"lint": "eslint . -c ./.eslintrc.yml \"packages/**/*.{ts,js}\"",
|
|
"test": "ava",
|
|
"format": "run-p format:prettier format:rs format:toml",
|
|
"format:prettier": "prettier --config ./package.json -w .",
|
|
"format:rs": "cargo fmt --all",
|
|
"format:toml": "taplo format",
|
|
"typecheck": "tsc -b tsconfig.project.json -verbose",
|
|
"postinstall": "husky install"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "2.14.0",
|
|
"@swc-node/core": "^1.9.1",
|
|
"@swc-node/register": "^1.5.4",
|
|
"@swc/core": "^1.3.24",
|
|
"@taplo/cli": "^0.5.2",
|
|
"@types/node": "^18.11.18",
|
|
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
|
"@typescript-eslint/parser": "^5.48.0",
|
|
"ava": "^5.1.0",
|
|
"benchmark": "^2.1.4",
|
|
"codecov": "^3.8.3",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.31.0",
|
|
"eslint-config-prettier": "^8.6.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"husky": "^8.0.2",
|
|
"lerna": "^6.3.0",
|
|
"lint-staged": "^13.1.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^2.8.1",
|
|
"ts-node": "^10.9.1",
|
|
"tslib": "^2.4.1",
|
|
"typescript": "^4.9.4"
|
|
},
|
|
"lint-staged": {
|
|
"*.@(js|ts|tsx)": [
|
|
"eslint -c .eslintrc.yml --fix"
|
|
],
|
|
"*.@(js|ts|tsx|yml|yaml|json|md)": [
|
|
"prettier --write"
|
|
],
|
|
"*.toml": [
|
|
"taplo format"
|
|
],
|
|
"*.rs": [
|
|
"cargo fmt --"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"printWidth": 120,
|
|
"semi": false,
|
|
"trailingComma": "all",
|
|
"singleQuote": true,
|
|
"arrowParens": "always"
|
|
}
|
|
}
|