Skip to content

Commit

Permalink
feat: lockfile glob pattern and command arg (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
bushuai authored Jan 14, 2025
1 parent 7cbee9f commit 3480cb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lefthook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pre-commit:
commands:
check:
glob: "*.{js,ts,json}"
run: biome check --apply {staged_files} && git add {staged_files}
run: biome check --write {staged_files} && git add {staged_files}
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const listenForActiveTextEditorChange = () => {
*/
const listenForLockfilesChanges = () => {
const watcher = workspace.createFileSystemWatcher(
"**/{package-lock.json,yarn.lock,bun.lockb,pnpm-lock.yaml}",
"**/{package-lock.json,yarn.lock,bun.lockb,bun.lock,pnpm-lock.yaml}",
);

watcher.onDidChange((event) => {
Expand Down

0 comments on commit 3480cb6

Please sign in to comment.