@kshitizz362mo ago
@haxzie PTAL
This PR resolves the TODO in ts/packages/cli/src/generation/typescript/transpile.ts by extracting the shared virtual TypeScript compiler-host logic used by both production transpilation and test validation.
While doing that refactor, it also fixes a real virtual module-resolution issue: TypeScript may resolve in-memory files using ./file.ts, file.ts, or absolute paths, and the previous setup did not handle those lookups consistently.
ts/packages/cli/src/generation/typescript/virtual-compiler-host.tsts/packages/cli/src/generation/typescript/transpile.ts to use the shared helperts/packages/cli/test/__utils__/typescript-compiler.ts to use the same shared helper@composio/cliRan focused checks on the touched CLI TypeScript generation/compiler-host paths:
pnpm --dir ts/packages/cli exec prettier --check src/generation/typescript/transpile.ts src/generation/typescript/virtual-compiler-host.ts test/__utils__/typescript-compiler.ts test/src/generation/typescript/generate.test.ts test/src/commands/ts/ts.generate.cmd.test.ts
pnpm --dir ts/packages/cli exec vitest run test/__utils__/typescript-compiler.ts
pnpm --dir ts/packages/cli exec vitest run test/src/generation/typescript/generate.test.ts
@haxzie PTAL
@kshitizz36 is attempting to deploy a commit to the Composio Team on Vercel.
A member of the Team first needs to authorize it.