Skip to content

Commit c6f5fb5

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

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.husky/pre-commit

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,26 @@ if [ "$branch" = "main" ]; then
55
exit 1
66
fi
77

8-
# Detect if running on Windows and use npx.cmd, otherwise use npx
8+
# Detect if running on Windows and use pnpm.cmd, otherwise use pnpm.
99
if [ "$OS" = "Windows_NT" ]; then
10-
npx_cmd="npx.cmd"
10+
pnpm_cmd="pnpm.cmd"
1111
else
12-
npx_cmd="npx"
12+
pnpm_cmd="pnpm"
1313
fi
1414

15-
pnpm --filter @roo-code/vscode generate-types
15+
"$pnpm_cmd" --filter @roo-code/vscode generate-types
1616

1717
if [ -n "$(git diff --name-only src/exports/roo-code.d.ts)" ]; then
1818
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
2222

23+
# Detect if running on Windows and use npx.cmd, otherwise use npx.
24+
if [ "$OS" = "Windows_NT" ]; then
25+
npx_cmd="npx.cmd"
26+
else
27+
npx_cmd="npx"
28+
fi
29+
2330
"$npx_cmd" lint-staged

.husky/pre-push

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ if [ "$branch" = "main" ]; then
55
exit 1
66
fi
77

8-
# Detect if running on Windows and use npm.cmd, otherwise use npm
8+
# Detect if running on Windows and use pnpm.cmd, otherwise use pnpm.
99
if [ "$OS" = "Windows_NT" ]; then
10-
npm_cmd="npm.cmd"
10+
pnpm_cmd="pnpm.cmd"
1111
else
12-
npm_cmd="npm"
12+
pnpm_cmd="pnpm"
1313
fi
1414

15-
"$npm_cmd" run compile
15+
"$pnpm_cmd" run compile
1616

1717
# Check for new changesets.
1818
NEW_CHANGESETS=$(find .changeset -name "*.md" ! -name "README.md" | wc -l | tr -d ' ')

0 commit comments

Comments
 (0)