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 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
- pkg.name = packageName
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
- packageNameRegExp.test(input) ? true : 'Invalid package.json name',
178
+ // validate: input =>
179
+ // packageNameRegExp.test(input) ? true : 'Invalid package.json name',
179
180
  })
180
181
  return inputPackageName
181
182
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-valaxy",
3
- "version": "0.14.52",
3
+ "version": "0.14.54",
4
4
  "description": "Create Starter Template for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -11,8 +11,8 @@
11
11
  "serve": "vite preview"
12
12
  },
13
13
  "dependencies": {
14
- "valaxy": "0.14.52",
15
- "valaxy-theme-yun": "0.14.52"
14
+ "valaxy": "0.14.54",
15
+ "valaxy-theme-yun": "0.14.54"
16
16
  },
17
17
  "devDependencies": {
18
18
  "typescript": "^5.1.6"