Skip to content

Commit 6ce3aab

Browse files
committed
More progress
1 parent 081f785 commit 6ce3aab

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

scripts/link-cloud.js

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,19 @@ try {
5656
log("green", "✓ Dependencies already installed")
5757
}
5858

59-
// Step 2: Build in development mode
60-
log("yellow", "🔨 Building SDK in development mode...")
61-
62-
execSync("pnpm build:development", {
63-
cwd: cloudSdkPath,
64-
stdio: "inherit",
65-
env: { ...process.env, FORCE_COLOR: "1" },
66-
})
67-
68-
// Step 3: Build for npm directory
69-
log("yellow", "📦 Building for npm directory...")
70-
71-
execSync("NODE_ENV=development pnpm tsup --outDir npm/dist", {
72-
cwd: cloudSdkPath,
73-
stdio: "inherit",
74-
env: { ...process.env, NODE_ENV: "development", FORCE_COLOR: "1" },
75-
})
76-
77-
// Step 4: Remove existing link if it exists
59+
// Step 2: Remove existing link if it exists
7860
if (fs.existsSync(targetPath)) {
7961
log("yellow", "🗑️ Removing existing @roo-code/cloud package...")
8062
fs.rmSync(targetPath, { recursive: true, force: true })
8163
}
8264

83-
// Step 5: Create @roo-code directory if needed
65+
// Step 3: Create @roo-code directory if needed
8466
const rooCodeDir = path.join(extensionNodeModules, "@roo-code")
8567
if (!fs.existsSync(rooCodeDir)) {
8668
fs.mkdirSync(rooCodeDir, { recursive: true })
8769
}
8870

89-
// Step 6: Create symlink
71+
// Step 4: Create symlink
9072
const npmPath = path.join(cloudSdkPath, "npm")
9173
fs.symlinkSync(npmPath, targetPath, "dir")
9274

0 commit comments

Comments
 (0)