Skip to content

Commit 7eba4ce

Browse files
committed
Switch to a pnpm-based monorepo with turbo
1 parent 3b19d7a commit 7eba4ce

File tree

101 files changed

+21981
-48145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+21981
-48145
lines changed

.github/workflows/changeset-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
uses: actions/setup-node@v4
3636
with:
3737
node-version: ${{ env.NODE_VERSION }}
38-
cache: 'npm'
39-
38+
cache: 'pnpm'
39+
4040
- name: Install Dependencies
41-
run: npm run install:all
41+
run: pnpm install
4242

4343
# Check if there are any new changesets to process
4444
- name: Check for changesets
@@ -56,7 +56,7 @@ jobs:
5656
with:
5757
commit: "changeset version bump"
5858
title: "Changeset version bump"
59-
version: npm run version-packages # This performs the changeset version bump
59+
version: pnpm version-packages # This performs the changeset version bump
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.CROSS_REPO_ACCESS_TOKEN }}
6262

.github/workflows/code-qa.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{ env.NODE_VERSION }}
24-
cache: 'npm'
24+
cache: 'pnpm'
2525
- name: Install dependencies
26-
run: npm run install:all
26+
run: pnpm install
2727
- name: Compile
28-
run: npm run compile
28+
run: pnpm compile
2929
- name: Check types
30-
run: npm run check-types
30+
run: pnpm check-types
3131
- name: Lint
32-
run: npm run lint
32+
run: pnpm lint
3333

3434
check-translations:
3535
runs-on: ubuntu-latest
@@ -39,10 +39,10 @@ jobs:
3939
- name: Setup Node.js
4040
uses: actions/setup-node@v4
4141
with:
42-
node-version: '18'
43-
cache: 'npm'
42+
node-version: ${{ env.NODE_VERSION }}
43+
cache: 'pnpm'
4444
- name: Install dependencies
45-
run: npm run install:all
45+
run: pnpm install
4646
- name: Verify all translations are complete
4747
run: node scripts/find-missing-translations.js
4848

@@ -54,12 +54,12 @@ jobs:
5454
- name: Setup Node.js
5555
uses: actions/setup-node@v4
5656
with:
57-
node-version: '18'
58-
cache: 'npm'
57+
node-version: ${{ env.NODE_VERSION }}
58+
cache: 'pnpm'
5959
- name: Install dependencies
60-
run: npm run install:all
60+
run: pnpm install
6161
- name: Run knip checks
62-
run: npm run knip
62+
run: pnpm knip
6363

6464
test-extension:
6565
runs-on: ${{ matrix.os }}
@@ -73,11 +73,11 @@ jobs:
7373
uses: actions/setup-node@v4
7474
with:
7575
node-version: ${{ env.NODE_VERSION }}
76-
cache: 'npm'
76+
cache: 'pnpm'
7777
- name: Install dependencies
78-
run: npm run install:all
78+
run: pnpm install
7979
- name: Compile (to build and copy WASM files)
80-
run: npm run compile
80+
run: pnpm compile
8181
- name: Run unit tests
8282
run: npx jest --silent
8383

@@ -92,10 +92,10 @@ jobs:
9292
- name: Setup Node.js
9393
uses: actions/setup-node@v4
9494
with:
95-
node-version: '18'
96-
cache: 'npm'
95+
node-version: ${{ env.NODE_VERSION }}
96+
cache: 'pnpm'
9797
- name: Install dependencies
98-
run: npm run install:all
98+
run: pnpm install
9999
- name: Run unit tests
100100
working-directory: webview-ui
101101
run: npx jest --silent
@@ -133,12 +133,12 @@ jobs:
133133
uses: actions/setup-node@v4
134134
with:
135135
node-version: ${{ env.NODE_VERSION }}
136-
cache: 'npm'
136+
cache: 'pnpm'
137137
- name: Install dependencies
138-
run: npm run install:all
138+
run: pnpm install
139139
- name: Create .env.local file
140140
working-directory: e2e
141141
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.local
142142
- name: Run integration tests
143143
working-directory: e2e
144-
run: xvfb-run -a npm run ci
144+
run: xvfb-run -a pnpm ci

.github/workflows/marketplace-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
- name: Install Dependencies
3232
run: |
3333
npm install -g vsce ovsx
34-
npm run install:all
34+
pnpm install
3535
- name: Create .env file
3636
run: echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
3737
- name: Package Extension
3838
run: |
3939
current_package_version=$(node -p "require('./package.json').version")
40-
npm run vsix
40+
pnpm vsix
4141
package=$(unzip -l bin/roo-cline-${current_package_version}.vsix)
4242
echo "$package"
4343
echo "$package" | grep -q "dist/extension.js" || exit 1
@@ -56,7 +56,7 @@ jobs:
5656
OVSX_PAT: ${{ secrets.OVSX_PAT }}
5757
run: |
5858
current_package_version=$(node -p "require('./package.json').version")
59-
npm run publish:marketplace
59+
pnpm publish:marketplace
6060
echo "Successfully published version $current_package_version to VS Code Marketplace"
6161
- name: Create GitHub Release
6262
env:

.github/workflows/update-contributors.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v3
2121
with:
22-
node-version: '18'
23-
cache: 'npm'
22+
node-version: ${{ env.NODE_VERSION }}
23+
cache: 'pnpm'
2424

2525
- name: Disable Husky
2626
run: |
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Update contributors and format
3434
run: |
35-
npm run update-contributors
35+
pnpm update-contributors
3636
npx prettier --write README.md
3737
if git diff --quiet; then echo "changes=false" >> $GITHUB_OUTPUT; else echo "changes=true" >> $GITHUB_OUTPUT; fi
3838
id: check-changes

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@ docs/_site/
2727
!.env.*.sample
2828

2929

30-
#Local lint config
30+
# Local lint config
3131
.eslintrc.local.json
3232

33-
#Logging
33+
# Logging
3434
logs
3535

3636
# Vite development
3737
.vite-port
38+
39+
# Turborepo
40+
.turbo

.husky/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ else
1212
npx_cmd="npx"
1313
fi
1414

15-
npm run generate-types
15+
pnpm --filter @roo-code/vscode generate-types
1616

1717
if [ -n "$(git diff --name-only src/exports/roo-code.d.ts)" ]; then
18-
echo "Error: There are unstaged changes to roo-code.d.ts after running 'npm run generate-types'."
18+
echo "Error: There are unstaged changes to roo-code.d.ts after running 'pnpm --filter @roo-code/vscode generate-types'."
1919
echo "Please review and stage the changes before committing."
2020
exit 1
2121
fi

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ echo "Changeset files: $NEW_CHANGESETS"
2020

2121
if [ "$NEW_CHANGESETS" == "0" ]; then
2222
echo "-------------------------------------------------------------------------------------"
23-
echo "Changes detected. Please run 'npm run changeset' to create a changeset if applicable."
23+
echo "Changes detected. Please run 'pnpm changeset' to create a changeset if applicable."
2424
echo "-------------------------------------------------------------------------------------"
2525
fi

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.vscode/tasks.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"tasks": [
66
{
77
"label": "watch",
8-
"dependsOn": ["npm: dev", "npm: watch:tsc", "npm: watch:esbuild"],
8+
"dependsOn": ["pnpm dev", "pnpm watch:tsc", "pnpm watch:esbuild"],
99
"presentation": {
1010
"reveal": "never"
1111
},
@@ -15,9 +15,9 @@
1515
}
1616
},
1717
{
18-
"label": "npm: dev",
19-
"type": "npm",
20-
"script": "dev",
18+
"label": "pnpm dev",
19+
"type": "shell",
20+
"command": "pnpm dev",
2121
"group": "build",
2222
"problemMatcher": {
2323
"owner": "vite",
@@ -37,9 +37,9 @@
3737
}
3838
},
3939
{
40-
"label": "npm: watch:esbuild",
41-
"type": "npm",
42-
"script": "watch:esbuild",
40+
"label": "pnpm watch:esbuild",
41+
"type": "shell",
42+
"command": "pnpm watch:esbuild",
4343
"group": "build",
4444
"problemMatcher": "$esbuild-watch",
4545
"isBackground": true,
@@ -49,9 +49,9 @@
4949
}
5050
},
5151
{
52-
"label": "npm: watch:tsc",
53-
"type": "npm",
54-
"script": "watch:tsc",
52+
"label": "pnpm watch:tsc",
53+
"type": "shell",
54+
"command": "pnpm watch:tsc",
5555
"group": "build",
5656
"problemMatcher": "$tsc-watch",
5757
"isBackground": true,

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ git clone https://github.com/RooVetGit/Roo-Code.git
100100
2. **Install dependencies**:
101101

102102
```sh
103-
npm run install:all
103+
pnpm install
104104
```
105105

106106
3. **Start the webview (Vite/React app with HMR)**:
107107

108108
```sh
109-
npm run dev
109+
pnpm dev
110110
```
111111

112112
4. **Debug**:
@@ -117,7 +117,7 @@ Changes to the webview will appear immediately. Changes to the core extension wi
117117
Alternatively you can build a .vsix and install it directly in VSCode:
118118

119119
```sh
120-
npm run build
120+
pnpm build
121121
```
122122

123123
A `.vsix` file will appear in the `bin/` directory which can be installed with:

0 commit comments

Comments
 (0)