Skip to content

Commit b9fad9b

Browse files
committed
Add comment for how to resolve format failure
1 parent 559063c commit b9fad9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"test": "npm run test:spelling && npm run test:format && npm run test:build",
1717
"test:spelling": "cspell \"spec/**/*.md\" README.md",
1818
"format": "prettier --write \"**/*.{md,yml,yaml,json}\"",
19-
"test:format": "prettier --check \"**/*.{md,yml,yaml,json}\"",
19+
"test:format": "prettier --check \"**/*.{md,yml,yaml,json}\" || echo \"\nTo resolve this, run: $(tput bold)npm run format$(tput sgr0)\" && exit 1",
2020
"build": "./build.sh",
2121
"test:build": "spec-md --metadata spec/metadata.json spec/GraphQL.md > /dev/null",
2222
"watch": "nodemon -e json,md --exec \"npm run build\""

0 commit comments

Comments
 (0)