Fix jsonlint script

Yarn 2 has its own script interpreter, which does not support loops.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2023-05-28 21:35:29 +02:00 committed by Tilman Vatteroth
parent 50b60e30f1
commit 5df8a45413

View file

@ -7,7 +7,7 @@
"scripts": {
"test": "npm run-script eslint && npm run-script jsonlint && npm run-script mocha-suite",
"eslint": "node_modules/.bin/eslint --max-warnings 0 lib public test app.js",
"jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done",
"jsonlint": "find . \\( -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' \\) -print0 | xargs -0 -I 'file' jq . file",
"markdownlint": "remark .",
"mocha-suite": "NODE_ENV=test CMD_DB_URL=\"sqlite::memory:\" mocha --exit",
"standard": "echo 'standard is no longer being used, use `npm run eslint` instead!' && exit 1",