From 257167a034b34d4f56d96442dfbeac9306d8c3cf Mon Sep 17 00:00:00 2001 From: Luci <22126563+LuciNyan@users.noreply.github.com> Date: Fri, 25 Apr 2025 01:48:35 +0800 Subject: [PATCH] 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 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8998ecef..92ec95ac 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ ".github/workflows/*.yml": "prettier --write", "**/*.{js,ts,tsx}": [ "pnpm --filter @openai/codex run lint", - "pnpm --filter @openai/codex run typecheck" + "cd codex-cli && pnpm run typecheck" ] }, "packageManager": "pnpm@10.8.1"