@lazycatcloud/lzc-cli 1.2.43 → 1.2.45
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/README.md +2 -0
- package/changelog.md +5 -0
- package/lib/app/lpk_debug_bridge.js +4 -3
- package/lib/app/lpk_devshell.js +1 -1
- package/package.json +1 -1
- package/template/vue/vite.config.ts +3 -0
- package/template/ionic_vue3/package-lock.json +0 -8100
package/README.md
CHANGED
package/changelog.md
CHANGED
|
@@ -41,17 +41,18 @@ export class DebugBridge {
|
|
|
41
41
|
|
|
42
42
|
async common(cmd, args) {
|
|
43
43
|
const resolvedIp = await resolveDomain(this.domain)
|
|
44
|
-
|
|
45
|
-
const ssh = spawn.sync(
|
|
44
|
+
args = args.map((arg) => arg.replace(this.domain, resolvedIp))
|
|
45
|
+
const ssh = spawn.sync(cmd, args, {
|
|
46
46
|
shell: true,
|
|
47
47
|
encoding: "utf-8",
|
|
48
48
|
stdio: ["pipe", "pipe", "pipe"]
|
|
49
49
|
})
|
|
50
|
+
logger.debug(`执行命令 ${cmd} ${args.join(" ")}`)
|
|
50
51
|
return new Promise((resolve, reject) => {
|
|
51
52
|
ssh.status == 0
|
|
52
53
|
? resolve(ssh.stdout)
|
|
53
54
|
: reject(
|
|
54
|
-
`执行命令 ${
|
|
55
|
+
`执行命令 ${cmd} ${args.join(" ")} 出错\n${ssh.stdout ?? ""}\n${ssh.stderr ?? ""}`
|
|
55
56
|
)
|
|
56
57
|
})
|
|
57
58
|
}
|
package/lib/app/lpk_devshell.js
CHANGED
|
@@ -486,7 +486,7 @@ class DevShell {
|
|
|
486
486
|
]
|
|
487
487
|
logger.debug("同步代码: ", rsyncCmd, rsyncArgs.join(" "))
|
|
488
488
|
const rsyncStream = spawn.sync(rsyncCmd, rsyncArgs, {
|
|
489
|
-
env: { RSYNC_PASSWORD: "fakefakefake" },
|
|
489
|
+
env: { ...process.env, RSYNC_PASSWORD: "fakefakefake" },
|
|
490
490
|
shell: true,
|
|
491
491
|
stdio: ["ignore", isDebugMode() ? "inherit" : "ignore", "inherit"]
|
|
492
492
|
})
|
package/package.json
CHANGED