Skip to content

Commit 45ffddb

Browse files
authored
Fix operator precedence in test:format (#1008)
1 parent b9fad9b commit 45ffddb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
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}\" || echo \"\nTo resolve this, run: $(tput bold)npm run format$(tput sgr0)\" && exit 1",
19+
"test:format": "prettier --check \"**/*.{md,yml,yaml,json}\" || npm run suggest:format",
20+
"suggest:format": "echo \"\nTo resolve this, run: $(tput bold)npm run format$(tput sgr0)\" && exit 1",
2021
"build": "./build.sh",
2122
"test:build": "spec-md --metadata spec/metadata.json spec/GraphQL.md > /dev/null",
2223
"watch": "nodemon -e json,md --exec \"npm run build\""

0 commit comments

Comments
 (0)