Skip to content

Commit

Permalink
Fix run-p script glob on yarn 2+
Browse files Browse the repository at this point in the history
Yarn 2+ expands glob patterns using its own shell and fails the `lint` script.

Quote the pattern to prevent premature expansion. Escaped double quotes are used
for compatibility with cmd.exe.

Related-Bug: mysticatea/npm-run-all#200 yarnpkg/berry#1814
  • Loading branch information
SuibianP committed Aug 18, 2023
1 parent f65e58a commit dd957ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"rsync:export": "rsync -avu --delete-after dist-timetable/",
"promote-staging": "bash scripts/promote-staging.sh",
"typecheck": "tsc --noEmit",
"lint": "run-p lint:**",
"lint": "run-p \"lint:**\"",
"lint:code": "eslint --ext .js,.ts,.tsx api scripts src webpack",
"lint:styles": "stylelint \"src/**/*.scss\" --syntax scss",
"test": "jest --coverage",
Expand Down

0 comments on commit dd957ba

Please sign in to comment.