From 768794c99446eff5e854a6bae6836e403749f410 Mon Sep 17 00:00:00 2001 From: Hu Jialun Date: Sat, 19 Aug 2023 00:57:36 +0700 Subject: [PATCH] Fix run-p script glob on yarn 2+ 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 --- website/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/package.json b/website/package.json index b3cd79fa26..e23163f055 100644 --- a/website/package.json +++ b/website/package.json @@ -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",