-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This implements most of the logic found in `read-package-json`, except for the index.js/comments parsing that we don't currently do from inside npm. It also shares all the normalization logic into one method, that `normalize` and `prepare` then pick and choose which ones to use. This will allow us to maintain the functionality that `read-package-json` has of skipping certain steps, but doing so in a more config-based way instead of passing in functions to run. All the existing `read-package-json` tests were ported over, and new ones added to get to 100% coverage. For now the 'steps' will be undocumented.
- Loading branch information
Showing
5 changed files
with
808 additions
and
54 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
Oops, something went wrong.