@lazycatcloud/lzc-cli 1.2.33 → 1.2.34
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/lib/app/lpk_devshell.js
CHANGED
|
@@ -358,6 +358,12 @@ export class AppDevShell {
|
|
|
358
358
|
return manifest
|
|
359
359
|
})
|
|
360
360
|
|
|
361
|
+
// devshell 模式下,默认打开后台常驻
|
|
362
|
+
this.lpkBuild.onBeforeDumpYaml(async (manifest) => {
|
|
363
|
+
manifest["application"]["background_task"] = true
|
|
364
|
+
return manifest
|
|
365
|
+
})
|
|
366
|
+
|
|
361
367
|
// 添加一个 devshell 的标记在 lpk 中,标记当前 lpk 为一个 debug 版本
|
|
362
368
|
this.lpkBuild.onBeforeDumpLpk(async (options, cwd, destDir) => {
|
|
363
369
|
fs.writeFileSync(path.resolve(destDir, "devshell"), "")
|