We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae0cd7 commit 32eabceCopy full SHA for 32eabce
2 files changed
cli.ts
@@ -344,7 +344,8 @@ export default defineConfig({
344
}
345
346
347
-if (import.meta.filename === realpathSync(process.argv[1])) {
+const entryScript = process.argv[1]
348
+if (entryScript && import.meta.filename === realpathSync(entryScript)) {
349
main().catch((err: unknown) => {
350
console.error(err)
351
process.exit(1)
hk.pkl
@@ -16,6 +16,9 @@ hooks {
16
check = "pnpm exec oxlint --import-plugin --promise-plugin {{files}}"
17
18
["typos"] = (Builtins.typos)
19
+ ["tsc"] {
20
+ check = "pnpm exec tsc --noEmit"
21
+ }
22
23
24
["commit-msg"] {
0 commit comments