Commit c5e06b9
committed
fix: lazy-load openapi-ts in mobility-formats so apps/api doesn't ship the TypeScript compiler
`@hey-api/openapi-ts` is a build-time SDK generator that imports the TypeScript compiler at module load. Importing it eagerly from `tomp.ts` made every transitive consumer of @openmapx/mobility-formats pull in `typescript`, including the apps/api esbuild bundle (which packs all `@openmapx/*` workspace deps). Production app-api containers crashed at startup with `ERR_MODULE_NOT_FOUND: Cannot find package 'typescript'` because typescript is a devDependency. Move the import into `generateTompSdk`, the only call site, so it stays out of the runtime bundle.1 parent 5b5136d commit c5e06b9
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
468 | 473 | | |
469 | 474 | | |
470 | 475 | | |
| 476 | + | |
471 | 477 | | |
472 | 478 | | |
473 | 479 | | |
| |||
0 commit comments