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",