Skip to content

Commit 9a51903

Browse files
author
Leon Si
committed
fix: fixes
1 parent e377083 commit 9a51903

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.gitalias

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[alias]
2-
scommit = "!pnpm run ts-node scripts/aliases/supercommit.ts"
3-
spush = "!pnpm run ts-node scripts/aliases/superpush.ts"
4-
spull = "!pnpm run ts-node scripts/aliases/superpull.ts"
2+
scommit = "!pnpm exec ts-node scripts/aliases/supercommit.ts"
3+
spush = "!pnpm exec ts-node scripts/aliases/superpush.ts"
4+
spull = "!pnpm exec ts-node scripts/aliases/superpull.ts"

scripts/hooks/commit-msg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import execa from 'execa';
44

55
const message = process.argv[process.argv.length - 1];
66

7-
execa.sync('pnpm', ['run', 'commitlint', '--edit', message]);
7+
execa.sync('pnpm', ['exec', 'commitlint', '--edit', message]);

scripts/hooks/pre-commit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function precommit() {
88
).stdout.toString();
99

1010
if (branch === 'dev') {
11-
commandSync('pnpm run lint-staged', {
11+
commandSync('pnpm exec lint-staged', {
1212
stdout: process.stdout,
1313
});
1414
}

0 commit comments

Comments
 (0)