()
| 944 | |
| 945 | /** Validate that SRC_ROOT exists. Exits with error if not. */ |
| 946 | export async function validateSrcRoot(): Promise<void> { |
| 947 | if (!(await dirExists(SRC_ROOT))) { |
| 948 | console.error( |
| 949 | `Error: Claude Code src/ directory not found at ${SRC_ROOT}` |
| 950 | ); |
| 951 | console.error( |
| 952 | "Set CLAUDE_CODE_SRC_ROOT environment variable to the src/ directory path." |
| 953 | ); |
| 954 | process.exit(1); |
| 955 | } |
| 956 | } |
| 957 | |
| 958 |