create-valaxy 0.14.53 → 0.14.54
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -3
- package/package.json +1 -1
- package/template/package.json +2 -2
package/index.js
CHANGED
@@ -84,7 +84,8 @@ async function init() {
|
|
84
84
|
|
85
85
|
// write pkg name & version
|
86
86
|
const pkg = require(path.join(templateDir, 'package.json'))
|
87
|
-
|
87
|
+
if (packageName)
|
88
|
+
pkg.name = packageName
|
88
89
|
pkg.version = version
|
89
90
|
|
90
91
|
write('package.json', JSON.stringify(pkg, null, 2))
|
@@ -174,8 +175,8 @@ async function getValidPackageName(projectName) {
|
|
174
175
|
name: 'inputPackageName',
|
175
176
|
message: 'Package name:',
|
176
177
|
initial: suggestedPackageName,
|
177
|
-
validate: input =>
|
178
|
-
|
178
|
+
// validate: input =>
|
179
|
+
// packageNameRegExp.test(input) ? true : 'Invalid package.json name',
|
179
180
|
})
|
180
181
|
return inputPackageName
|
181
182
|
}
|
package/package.json
CHANGED
package/template/package.json
CHANGED