-
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
Option to ignore scripts or specific pattern #237
Comments
As an alternative I'm using https://www.npmjs.com/package/vscode-sort-package-json-without-scripts |
Is there already an update here? Will there be a configuration option for it? |
@keithamus can you take a look? The package is great but I don't want it to scramble my scripts order |
This is an issue when using running multiple scripts by pnpm https://pnpm.io/cli/run#running-multiple-scripts
And I want to have defined "watch:a" after ""watch:b" since it influence order of appearance in output in script "watch". |
Please take a look at https://github.com/keithamus/sort-package-json?tab=readme-ov-file#i-would-like-this-tool-to-be-configurable-with-a-config-file-or-command-line-arguments
If you think the heuristics can be improved, please send a PR to improve the heuristics and we can review it accordingly. In the case of |
I am sorting my scripts like below to have it more readable as it's become bigger. Also, npm offers a nice list of all commands which work pretty well together with my comments hack. Unfortunately, when sorting my package.json it destroys the hole order. It would be very cool to have an option to ignore scripts (or any other group) or allow specific patterns not be sorted (in that case the hash #) and everything in between if that is even possible ^^.
The text was updated successfully, but these errors were encountered: