Skip to content

Commit 1b4fefc

Browse files
committed
Add a migration guide
1 parent eff1011 commit 1b4fefc

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

MONOREPO.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Monorepo Guide
2+
3+
Roo Code has transitioned to a monorepo powered by PNPM workspaces and TurboRepo.
4+
5+
When you first pull down the monorepo changes from git you'll need to re-install all packages using pnpm. You can install pnpm using [these](https://pnpm.io/installation) instructions. If you're on MacOS the easiest option is to use Homebrew:
6+
7+
```sh
8+
brew install pnpm
9+
```
10+
11+
Once pnpm is installed you should wipe out your existing node_modules directories for a fresh start:
12+
13+
```sh
14+
# This is optional, but recommended.
15+
find . -name node_modules | xargs rm -rvf
16+
```
17+
18+
And then install your packages:
19+
20+
```sh
21+
pnpm install
22+
```
23+
24+
If things are in good working order then you should be able to build a vsix and install it in VSCode:
25+
26+
```sh
27+
pnpm build --out ../bin/roo-code-main.vsix && \
28+
code --install-extension bin/roo-code-main.vsix
29+
```

evals/scripts/setup.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ build_extension() {
2828
echo "🔨 Building the Roo Code extension..."
2929
cd ..
3030
mkdir -p bin
31-
pnpm build:development || exit 1
32-
npx vsce package --out bin/roo-code-latest.vsix || exit 1
33-
code --install-extension bin/roo-code-latest.vsix || exit 1
31+
pnpm build --out ../bin/roo-code-$(git rev-parse --short HEAD).vsix || exit 1
32+
code --install-extension bin/roo-code-$(git rev-parse --short HEAD).vsix || exit 1
3433
cd evals
3534
}
3635

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"format": "turbo format --log-order grouped --output-logs new-only",
1414
"dev": "pnpm --filter @roo-code/vscode-webview dev",
1515
"build": "pnpm --filter roo-cline vsix",
16-
"build:development": "pnpm --filter roo-cline build:development",
1716
"changeset": "changeset",
1817
"knip": "knip --include files",
1918
"update-contributors": "node scripts/update-contributors.js"

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
"publish": "pnpm vsix && changeset publish && pnpm install --package-lock-only",
330330
"version-packages": "changeset version && pnpm install --package-lock-only",
331331
"vscode:prepublish": "pnpm build",
332-
"vsix": "rimraf ../dist && rimraf ../bin && mkdirp ../bin && npx vsce package --no-dependencies --out ../bin",
332+
"vsix": "rimraf dist && rimraf webview-ui && rimraf ../bin && mkdirp ../bin && npx vsce package --no-dependencies --out ../bin",
333333
"watch": "pnpm watch:esbuild watch:tsc",
334334
"watch:esbuild": "node esbuild.js --watch",
335335
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",

0 commit comments

Comments
 (0)