create-lve 0.4.2 → 0.4.3

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 (3) hide show
  1. package/config.js +1 -6
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/config.js CHANGED
@@ -191,14 +191,9 @@ async function cleanupTemplate(ctx) {
191
191
  }
192
192
  }
193
193
 
194
- async function installDependencies(ctx, s) {
195
- s.stop(pc.cyan(`准备安装依赖`))
194
+ async function installDependencies(ctx) {
196
195
  try {
197
196
  await runTask(ctx.pkgManager, ['install'], ctx.targetDir)
198
-
199
- s.start(pc.green(`正在执行 ${ctx.fmtCmd} 优化代码结构`))
200
- await new Promise((r) => setTimeout(r, 300))
201
-
202
197
  const [cmd, ...args] = ctx.fmtCmd.split(' ')
203
198
  await runTask(cmd, args, ctx.targetDir)
204
199
  } catch (err) {
package/index.js CHANGED
@@ -106,7 +106,7 @@ async function main() {
106
106
  await applyProjectTransform(ctx)
107
107
 
108
108
  s.start('Installing dependencies')
109
- await installDependencies(ctx, s)
109
+ await installDependencies(ctx)
110
110
 
111
111
  console.log(pc.gray(`◇ Scaffolded ${ctx.name} with Vite application`))
112
112
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lve",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "bin": {
5
5
  "create-lve": "index.js"
6
6
  },