fix: lint-staged error (#617)

## Description

In a recent commit, the command `"cd codex-cli && pnpm run typecheck"`
was updated to `"pnpm --filter @openai/codex run typecheck"`.

However, this change introduces an issue: 
when running `pnpm --filter @openai/codex run typecheck`, it executes
`tsc --noEmit somefile.ts` directly, bypassing the `tsconfig.json`
configuration. As a result, numerous type errors are triggered,
preventing successful commits.

Close: #619
This commit is contained in:
Luci
2025-04-25 01:48:35 +08:00
committed by GitHub
parent 9b102965b9
commit 257167a034

View File

@@ -39,7 +39,7 @@
".github/workflows/*.yml": "prettier --write", ".github/workflows/*.yml": "prettier --write",
"**/*.{js,ts,tsx}": [ "**/*.{js,ts,tsx}": [
"pnpm --filter @openai/codex run lint", "pnpm --filter @openai/codex run lint",
"pnpm --filter @openai/codex run typecheck" "cd codex-cli && pnpm run typecheck"
] ]
}, },
"packageManager": "pnpm@10.8.1" "packageManager": "pnpm@10.8.1"