style: run fmt
This commit is contained in:
parent
b977265cfa
commit
a7e9f82fd9
3 changed files with 32 additions and 10 deletions
|
@ -2,14 +2,22 @@
|
|||
"name": "@napi-rs/cli",
|
||||
"version": "2.0.0-beta.4",
|
||||
"description": "Cli tools for napi-rs",
|
||||
"keywords": ["cli", "rust", "napi", "n-api", "neon"],
|
||||
"keywords": [
|
||||
"cli",
|
||||
"rust",
|
||||
"napi",
|
||||
"n-api",
|
||||
"neon"
|
||||
],
|
||||
"author": "LongYinan <lynweklm@gmail.com>",
|
||||
"homepage": "https://github.com/napi-rs/napi-rs",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"napi": "./scripts/index.js"
|
||||
},
|
||||
"files": ["scripts"],
|
||||
"files": [
|
||||
"scripts"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">= 10"
|
||||
},
|
||||
|
|
16
package.json
16
package.json
|
@ -3,7 +3,11 @@
|
|||
"version": "0.0.0",
|
||||
"description": "A minimal library for building compiled Node add-ons in Rust.",
|
||||
"private": "true",
|
||||
"workspaces": ["cli", "triples", "memory-testing"],
|
||||
"workspaces": [
|
||||
"cli",
|
||||
"triples",
|
||||
"memory-testing"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:Brooooooklyn/napi-rs.git"
|
||||
|
@ -20,7 +24,8 @@
|
|||
"build:test:android:armv7": "yarn --cwd ./examples/napi-compat-mode build --target armv7-linux-androideabi && yarn --cwd ./examples/napi build --target armv7-linux-androideabi",
|
||||
"build:test:armv7": "yarn --cwd ./examples/napi-compat-mode build-armv7 && yarn --cwd ./examples/napi build-armv7",
|
||||
"bundle": "rollup -c rollup.config.js",
|
||||
"format": "prettier . -w && yarn format:rs",
|
||||
"format": "run-p format:prettier format:rs",
|
||||
"format:prettier": "prettier . -w",
|
||||
"format:rs": "cargo fmt",
|
||||
"lint": "eslint -c .eslintrc.yml .",
|
||||
"prepublishOnly": "npm run build && pinst --disable",
|
||||
|
@ -41,10 +46,9 @@
|
|||
"arrowParens": "always"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": ["prettier --write"],
|
||||
"*.@(yml|yaml)": ["prettier --parser yaml --write"],
|
||||
"*.json": ["prettier --parser json --write"],
|
||||
"*.md": ["prettier --parser markdown --write"]
|
||||
"*.@(js|json|md|yml|yaml)": [
|
||||
"prettier --write"
|
||||
]
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
|
|
|
@ -2,7 +2,14 @@
|
|||
"name": "@napi-rs/triples",
|
||||
"version": "1.1.0",
|
||||
"description": "Rust target triples objects",
|
||||
"keywords": ["Rust", "cross-compile", "napi", "n-api", "node-rs", "napi-rs"],
|
||||
"keywords": [
|
||||
"Rust",
|
||||
"cross-compile",
|
||||
"napi",
|
||||
"n-api",
|
||||
"node-rs",
|
||||
"napi-rs"
|
||||
],
|
||||
"author": "LongYinan <lynweklm@gmail.com>",
|
||||
"homepage": "https://github.com/napi-rs/napi-rs/tree/main/triples#readme",
|
||||
"license": "MIT",
|
||||
|
@ -12,7 +19,10 @@
|
|||
"registry": "https://registry.npmjs.org/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": ["index.js", "index.d.ts"],
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/napi-rs/napi-rs.git"
|
||||
|
|
Loading…
Reference in a new issue