Skip to content

Commit 0d2dc2c

Browse files
cteroomote[bot]
andauthored
Update scripts/link-cloud.js
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
1 parent 6ce3aab commit 0d2dc2c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/link-cloud.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ const sdkProcess = spawn("pnpm", ["build:development:watch"], {
8888
shell: true,
8989
})
9090

91+
sdkProcess.on('error', (error) => {
92+
log("red", "❌ Failed to start SDK watch mode: " + error.message)
93+
log("yellow", "Make sure 'build:development:watch' script exists in the Cloud SDK package.json")
94+
process.exit(1)
95+
})
96+
cwd: cloudSdkPath,
97+
stdio: ["inherit", "pipe", "pipe"],
98+
shell: true,
99+
})
100+
91101
sdkProcess.stdout.on("data", (data) => {
92102
process.stdout.write(`${colors.blue}[SDK]${colors.reset} ${data}`)
93103
})

0 commit comments

Comments
 (0)