-
Notifications
You must be signed in to change notification settings - Fork 89
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
chore: meta tweak #291
chore: meta tweak #291
Conversation
This fix returns the output of update-snapshot to the closest to the previous output as is possible. The new increased output takes from the focus of the script.
Maybe we should change - node cli.js package.json
+ node cli.js \"package.json\" To show user that better quote pattern/file s. Because shell may expand glob pattern and get unexpected result. |
Co-authored-by: fisker Cheung <[email protected]>
I could change it to |
single quote doesn't work on windows. |
.github/workflows/pr.yml
Outdated
@@ -39,7 +39,7 @@ jobs: | |||
run: npm run lint | |||
|
|||
- name: Check package.json | |||
run: npm run sort-package-json -- check | |||
run: npm run sort-package-json -- --check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch.
NPM is making things weird, previously --
is not needed, already run into this problem several times.
🎉 This PR is included in version 2.4.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This fix returns the output of
npm run update-snapshot
to the closest to the previous output as is possible. The new increased output of cli.js takes from the focus of the script by displaying multiple lines at the end regardless of the state of package.json, so this PR silences the cli, instead sorting the package in the background, potentially even without user awareness.