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
|
||||
scripts
|
||||
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:armv7": "yarn --cwd ./examples/napi-compat-mode build-armv7 && yarn --cwd ./examples/napi build-armv7",
|
||||
"bundle": "rollup -c rollup.config.js",
|
||||
"format": "run-p format:md format:json format:yaml format:source format:rs",
|
||||
"format:md": "prettier --parser markdown --write ./**/*.md",
|
||||
"format:json": "prettier --parser json --write ./**/*.json",
|
||||
"format": "prettier . -w && yarn format:rs",
|
||||
"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 .",
|
||||
"prepublishOnly": "npm run build && pinst --disable",
|
||||
"test": "ava",
|
||||
|
|
Loading…
Reference in a new issue