From 4177d071a37bc78b66d26298ff94af09a3cdd7ba Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 10 Dec 2021 12:58:17 +0800 Subject: [PATCH] chore: simplify format command --- .prettierignore | 1 + package.json | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.prettierignore b/.prettierignore index 5e027279..f2cf9e53 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,4 @@ target node_modules scripts triples/index.js +examples/napi/index.d.ts diff --git a/package.json b/package.json index fbd3117f..c67e2573 100644 --- a/package.json +++ b/package.json @@ -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",