Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 568a500

Browse files
committed
package.json: move prettier check into separate script
1 parent f203b9b commit 568a500

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
],
3737
"scripts": {
3838
"prepublish": ". ./resources/prepublish.sh",
39-
"test": "npm run lint && npm run check && npm run testonly",
40-
"test:ci": "yarn check --integrity && npm run lint && npm run check && npm run testonly:cover && npm run build",
39+
"test": "npm run prettier:check && npm run lint && npm run check && npm run testonly",
40+
"test:ci": "yarn check --integrity && npm run prettier:check && npm run lint && npm run check && npm run testonly:cover && npm run build",
4141
"testonly": "mocha src/**/__tests__/**/*.js",
4242
"testonly:cover": "nyc npm run testonly",
43-
"lint": "prettier --ignore-path .gitignore --check '**/*.{js,ts,md,json,yml}' && eslint src resources",
44-
"prettier": "prettier --ignore-path .gitignore --write '**/*.{js,ts,md,json,yml}'",
43+
"lint": "eslint src resources",
44+
"prettier": "prettier --ignore-path .gitignore --write --list-different '**/*.{js,ts,md,json,yml}'",
45+
"prettier:check": "prettier --ignore-path .gitignore --check '**/*.{js,md,json,yml}'",
4546
"check": "flow check",
4647
"build": "rm -rf dist/* && babel src --ignore '**/__tests__' --out-dir dist && npm run build:flow",
4748
"build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",

0 commit comments

Comments
 (0)