| 240 | } |
| 241 | |
| 242 | function getPackageManagerTypecheckCommand( |
| 243 | packageManager: 'pnpm' | 'npm' | 'yarn' | 'bun' | 'deno', |
| 244 | ) { |
| 245 | switch (packageManager) { |
| 246 | case 'npm': |
| 247 | return { |
| 248 | command: 'npm', |
| 249 | args: ['exec', '--', 'tsc', '--noEmit'], |
| 250 | } |
| 251 | case 'pnpm': |
| 252 | return { |
| 253 | command: 'pnpm', |
| 254 | args: ['exec', 'tsc', '--noEmit'], |
| 255 | } |
| 256 | case 'yarn': |
| 257 | return { |
| 258 | command: 'yarn', |
| 259 | args: ['exec', 'tsc', '--noEmit'], |
| 260 | } |
| 261 | case 'bun': |
| 262 | return { |
| 263 | command: 'bun', |
| 264 | args: ['x', 'tsc', '--noEmit'], |
| 265 | } |
| 266 | case 'deno': |
| 267 | return { |
| 268 | command: 'deno', |
| 269 | args: ['task', 'typecheck'], |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | async function runQualityGates( |
| 275 | appDir: string, |