chore: simplify format command
This commit is contained in:
parent
ecb6522f50
commit
4177d071a3
2 changed files with 2 additions and 5 deletions
|
@ -2,3 +2,4 @@ target
|
||||||
node_modules
|
node_modules
|
||||||
scripts
|
scripts
|
||||||
triples/index.js
|
triples/index.js
|
||||||
|
examples/napi/index.d.ts
|
||||||
|
|
|
@ -20,12 +20,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: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",
|
"build:test:armv7": "yarn --cwd ./examples/napi-compat-mode build-armv7 && yarn --cwd ./examples/napi build-armv7",
|
||||||
"bundle": "rollup -c rollup.config.js",
|
"bundle": "rollup -c rollup.config.js",
|
||||||
"format": "run-p format:md format:json format:yaml format:source format:rs",
|
"format": "prettier . -w && yarn format:rs",
|
||||||
"format:md": "prettier --parser markdown --write ./**/*.md",
|
|
||||||
"format:json": "prettier --parser json --write ./**/*.json",
|
|
||||||
"format:rs": "cargo fmt",
|
"format:rs": "cargo fmt",
|
||||||
"format:source": "prettier --config ./package.json --write ./**/*.{js,ts}",
|
|
||||||
"format:yaml": "prettier --parser yaml --write ./**/*.{yml,yaml}",
|
|
||||||
"lint": "eslint -c .eslintrc.yml .",
|
"lint": "eslint -c .eslintrc.yml .",
|
||||||
"prepublishOnly": "npm run build && pinst --disable",
|
"prepublishOnly": "npm run build && pinst --disable",
|
||||||
"test": "ava",
|
"test": "ava",
|
||||||
|
|
Loading…
Reference in a new issue