-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Keep the "pre" when sorting certain scripts (#50)
* feat: Keep the "pre" when sorting certain scripts Before, "prepare" was being sorted as if it was named "pare" and "prettier" was being sorted as if it was named "ttier". These scripts are now sorted as is. This is done via a blacklist, so other similar scripts could be added later. * feat: Only omit "pre" or "post" based on a whitelist The whitelist contains the default scripts defined in https://docs.npmjs.com/misc/scripts plus any scripts in the package.json that appear as a suffix of another script in the same package.json.
- Loading branch information
Showing
2 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters