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

chore: meta tweak #291

Merged
merged 11 commits into from
Feb 2, 2023
Merged

chore: meta tweak #291

merged 11 commits into from
Feb 2, 2023

Conversation

aarondill
Copy link
Contributor

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.

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.
package.json Outdated Show resolved Hide resolved
@fisker
Copy link
Collaborator

fisker commented Feb 2, 2023

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.

@aarondill
Copy link
Contributor Author

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.

I could change it to node cli.js 'package.json' (single quotes avoids need to escape them) if this concerns you

@fisker
Copy link
Collaborator

fisker commented Feb 2, 2023

single quote doesn't work on windows.

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

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.

@fisker fisker changed the title fix: add quiet flag to update-snapshot script chore: meta tweak Feb 2, 2023
README.md Show resolved Hide resolved
package.json Show resolved Hide resolved
@fisker fisker merged commit c6352d4 into keithamus:main Feb 2, 2023
@aarondill aarondill deleted the update-snapshot branch February 2, 2023 06:39
@github-actions
Copy link

github-actions bot commented Feb 4, 2023

🎉 This PR is included in version 2.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants