feat: 添加 CSC_CLOUD_INVOKER 环境变量标识调用来源
This commit is contained in:
parent
0755facc63
commit
f2d2083b94
|
|
@ -227,7 +227,7 @@ async function runCsCloud(args: string[]): Promise<void> {
|
||||||
const child = spawn(bin, args, {
|
const child = spawn(bin, args, {
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
windowsHide: false,
|
windowsHide: false,
|
||||||
env: { ...process.env },
|
env: { ...process.env, CSC_CLOUD_INVOKER: "csc" },
|
||||||
})
|
})
|
||||||
const code = await new Promise<number | null>((resolve) => {
|
const code = await new Promise<number | null>((resolve) => {
|
||||||
child.on("error", (err) => {
|
child.on("error", (err) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user