create-lve 0.6.9 → 0.6.10

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.
Files changed (2) hide show
  1. package/index.js +9 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -113,17 +113,15 @@ async function main() {
113
113
 
114
114
  const s = p.spinner()
115
115
 
116
- if (!ctx.isNext) {
117
- try {
118
- execSync('vp --version', { stdio: 'ignore' })
119
- } catch {
120
- p.log.error(pc.red('未检测到 VitePlus (vp) 环境'))
121
- p.note(
122
- pc.white(`React/Vue 模板依赖 vp 工具链:\n${pc.cyan('https://viteplus.dev/guide')}`),
123
- '环境缺失',
124
- )
125
- process.exit(1)
126
- }
116
+ try {
117
+ execSync('vp --version', { stdio: 'ignore' })
118
+ } catch {
119
+ p.log.error(pc.red('未检测到 VitePlus (vp) 环境'))
120
+ p.note(
121
+ pc.white(`React/Vue 模板依赖 vp 工具链:\n${pc.cyan('https://viteplus.dev/guide')}`),
122
+ '环境缺失',
123
+ )
124
+ process.exit(1)
127
125
  }
128
126
 
129
127
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lve",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "bin": {
5
5
  "create-lve": "index.js"
6
6
  },