Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix run-p script glob on yarn 2+ #3611

Merged
merged 3 commits into from
Aug 20, 2023

Conversation

SuibianP
Copy link
Contributor

Context

Yarn 2+ expands glob patterns using its own shell and fails the lint script.

$ yarn --version
3.6.2
$ yarn run ci
No matches found: "lint:**"

No issue created due to its trivial nature.

Implementation

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

Other Information

Related-Bug: mysticatea/npm-run-all#200 yarnpkg/berry#1814

Does the project officially support/plan to migrate to yarn 2+? If so, would it be better if such configuration is added to the test matrix?

@vercel
Copy link

vercel bot commented Aug 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nusmods-export ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2023 5:54am
nusmods-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2023 5:54am

@vercel
Copy link

vercel bot commented Aug 18, 2023

@SuibianP is attempting to deploy a commit to a Personal Account owned by @nusmodifications on Vercel.

@nusmodifications first needs to authorize it.

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
@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (b9d6038) 53.44% compared to head (c78e90a) 53.44%.
Report is 1 commits behind head on master.

❗ Current head c78e90a differs from pull request most recent head 0dce7f8. Consider uploading reports for the commit 0dce7f8 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3611   +/-   ##
=======================================
  Coverage   53.44%   53.44%           
=======================================
  Files         271      271           
  Lines        5862     5862           
  Branches     1396     1396           
=======================================
  Hits         3133     3133           
  Misses       2729     2729           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zwliew zwliew merged commit a14f8e1 into nusmodifications:master Aug 20, 2023
@zwliew
Copy link
Member

zwliew commented Aug 20, 2023

Thank you! I haven't looked into yarn 2 yet but I'm open to the idea of upgrading to it. Someone just has to do it :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants