Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/init-package-json/default-input.js')
-rw-r--r--node_modules/init-package-json/default-input.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/node_modules/init-package-json/default-input.js b/node_modules/init-package-json/default-input.js
index 721da45b7..c86894b26 100644
--- a/node_modules/init-package-json/default-input.js
+++ b/node_modules/init-package-json/default-input.js
@@ -41,7 +41,7 @@ function readDeps (test) { return function (cb) {
var name = package.name || basename
exports.name = yes ? name : prompt('name', name)
-var version = package.version || config.get('init.version') || '1.0.0'
+var version = package.version || config.get('init-version') || '1.0.0'
exports.version = yes ? version : prompt('version', version)
if (!package.description) {
@@ -177,14 +177,14 @@ if (!package.keywords) {
}
if (!package.author) {
- exports.author = config.get('init.author.name')
+ exports.author = config.get('init-author-name')
? {
- "name" : config.get('init.author.name'),
- "email" : config.get('init.author.email'),
- "url" : config.get('init.author.url')
+ "name" : config.get('init-author-name'),
+ "email" : config.get('init-author-email'),
+ "url" : config.get('init-author-url')
}
: prompt('author')
}
-var license = package.license || config.get('init.license') || 'ISC'
+var license = package.license || config.get('init-license') || 'ISC'
exports.license = yes ? license : prompt('license', license)