Skip to content

Commit 982e699

Browse files
committed
logical grouping operators differ across shells
this isn't perfect, as on my windows bash shell we don't get the error message, but i guess is better, because at least the behavior is correct. on my machine, it works with curly braces or brackets, but that doesn't work on ci, which seems to want parantheses, which gives the incorrect behavior on my machine!
1 parent 7a755ef commit 982e699

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)