-
Notifications
You must be signed in to change notification settings - Fork 3
fix(lefthook): use pnpm #217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,14 +3,14 @@ pre-commit: | |||||
| jobs: | ||||||
| - name: oxlint | ||||||
| glob: '*.{ts,tsx,js,jsx,mts,cts}' | ||||||
| run: bun oxlint --max-warnings=0 --type-aware --type-check --fix {staged_files} | ||||||
| run: pnpm oxlint --max-warnings=0 --type-aware --type-check --fix {staged_files} | ||||||
| stage_fixed: true | ||||||
| - name: oxfmt | ||||||
| glob: '*' | ||||||
| run: bun oxfmt --no-error-on-unmatched-pattern {staged_files} | ||||||
| run: pnpm oxfmt --no-error-on-unmatched-pattern {staged_files} | ||||||
|
||||||
| run: pnpm oxfmt --no-error-on-unmatched-pattern {staged_files} | |
| run: pnpm exec oxfmt --no-error-on-unmatched-pattern {staged_files} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command
pnpm oxlintshould bepnpm exec oxlintor use the package.json scriptpnpm run format:oxlint. When running binaries from node_modules/.bin with pnpm, you need to usepnpm execto execute them directly, or reference the npm script. The current command may fail because pnpm doesn't automatically run binaries like bun does.