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.
- package/config.js +1 -6
- package/index.js +1 -1
- 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
|
|
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
|
|
109
|
+
await installDependencies(ctx)
|
|
110
110
|
|
|
111
111
|
console.log(pc.gray(`◇ Scaffolded ${ctx.name} with Vite application`))
|
|
112
112
|
console.log(
|