Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Remove futile attempts to read npm config values
Our init-defaults.js apparently is a slightly modified copy of init-package-json/default-input.js. When npm calls `init-package-json` they probably pass an object parsed from their configuration file. We on the other hand always pass `{}`. Which means that any call to `config.get` will return `undefined`. This commit replaces all these calls in our code with `undefined` and does some constant folding to tidy things up.
- Loading branch information
Showing
1 changed file
with
4 additions
and
23 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