File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,26 @@ if [ "$branch" = "main" ]; then
55 exit 1
66fi
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.
99if [ "$OS" = "Windows_NT" ]; then
10- npx_cmd="npx .cmd"
10+ pnpm_cmd="pnpm .cmd"
1111else
12- npx_cmd="npx "
12+ pnpm_cmd="pnpm "
1313fi
1414
15- pnpm --filter @roo-code/vscode generate-types
15+ "$pnpm_cmd" --filter @roo-code/vscode generate-types
1616
1717if [ -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
2121fi
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
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ if [ "$branch" = "main" ]; then
55 exit 1
66fi
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.
99if [ "$OS" = "Windows_NT" ]; then
10- npm_cmd="npm .cmd"
10+ pnpm_cmd="pnpm .cmd"
1111else
12- npm_cmd="npm "
12+ pnpm_cmd="pnpm "
1313fi
1414
15- "$npm_cmd " run compile
15+ "$pnpm_cmd " run compile
1616
1717# Check for new changesets.
1818NEW_CHANGESETS=$(find .changeset -name "*.md" ! -name "README.md" | wc -l | tr -d ' ')
You can’t perform that action at this time.
0 commit comments