mirror of
https://github.com/napi-rs/node-rs.git
synced 2026-10-28 19:14:34 +08:00
74 lines
2.3 KiB
JSON
74 lines
2.3 KiB
JSON
{
|
|
"name": "node-rs",
|
|
"version": "0.0.0",
|
|
"description": "Node & Rust bindings monorepo",
|
|
"main": "index.js",
|
|
"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:md format:json format:yaml format:source",
|
|
"format:md": "prettier --parser markdown --write './**/*.md'",
|
|
"format:json": "prettier --parser json --write './**/*.json'",
|
|
"format:source": "prettier --config ./package.json --write './**/*.{js,ts}'",
|
|
"format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'",
|
|
"typecheck": "tsc -b tsconfig.project.json -verbose"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^1.0.0-alpha.9",
|
|
"@typescript-eslint/eslint-plugin": "^4.9.0",
|
|
"@typescript-eslint/parser": "^4.9.0",
|
|
"ava": "^3.13.0",
|
|
"benchmark": "^2.1.4",
|
|
"codecov": "^3.8.1",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^7.14.0",
|
|
"eslint-config-prettier": "^6.15.0",
|
|
"eslint-plugin-import": "^2.22.1",
|
|
"eslint-plugin-prettier": "^3.1.4",
|
|
"eslint-plugin-sonarjs": "^0.5.0",
|
|
"husky": "^4.3.0",
|
|
"lerna": "^3.22.1",
|
|
"lint-staged": "^10.5.2",
|
|
"npm-run-all": "^4.1.5",
|
|
"nyc": "^15.1.0",
|
|
"prettier": "^2.2.1",
|
|
"ts-node": "^9.0.0",
|
|
"typescript": "^4.1.2"
|
|
},
|
|
"ava": {
|
|
"extensions": ["ts"],
|
|
"require": ["ts-node/register/transpile-only"],
|
|
"files": ["packages/**/*.spec.ts"],
|
|
"environmentVariables": {
|
|
"TS_NODE_PROJECT": "./tsconfig.test.json"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.@(js|ts|tsx)": ["prettier --write", "eslint -c .eslintrc.yml --fix"],
|
|
"*.@(yml|yaml)": ["prettier --parser yaml --write"],
|
|
"*.json": ["prettier --parser json --write"],
|
|
"*.md": ["prettier --parser markdown --write"]
|
|
},
|
|
"prettier": {
|
|
"printWidth": 120,
|
|
"semi": false,
|
|
"trailingComma": "all",
|
|
"singleQuote": true,
|
|
"arrowParens": "always",
|
|
"parser": "typescript"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged && cargo fmt --all"
|
|
}
|
|
}
|
|
}
|