create-valaxy 0.14.52 → 0.14.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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