init-package-json
Advanced tools
Comparing version 1.10.1 to 1.10.2
@@ -15,3 +15,3 @@ var fs = require('fs') | ||
function niceName (n) { | ||
return n.replace(/^node-|[.-]js$/g, '').toLowerCase() | ||
return n.replace(/^node-|[.-]js$/g, '').replace(' ', '-').toLowerCase() | ||
} | ||
@@ -50,3 +50,8 @@ | ||
var name = package.name || basename | ||
var spec = npa(name) | ||
var spec | ||
try { | ||
spec = npa(name) | ||
} catch (e) { | ||
spec = {} | ||
} | ||
var scope = config.get('scope') | ||
@@ -53,0 +58,0 @@ if (scope) { |
@@ -119,3 +119,3 @@ | ||
console.log('About to write to %s:\n\n%s\n', packageFile, d) | ||
read({prompt:'Is this ok? ', default: 'yes'}, function (er, ok) { | ||
read({prompt:'Is this OK? ', default: 'yes'}, function (er, ok) { | ||
if (er) { | ||
@@ -122,0 +122,0 @@ return cb(er) |
{ | ||
"name": "init-package-json", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"main": "init-package-json.js", | ||
"scripts": { | ||
"test": "tap test/*.js" | ||
"prerelease": "npm t", | ||
"postrelease": "npm publish && git push --follow-tags", | ||
"release": "standard-version -s", | ||
"test": "tap --nyc-arg=--all --coverage test" | ||
}, | ||
@@ -29,2 +32,3 @@ "repository": { | ||
"rimraf": "^2.1.4", | ||
"standard-version": "^4.3.0", | ||
"tap": "^10.3.0" | ||
@@ -31,0 +35,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15044
6
354
5