MCPcopy Create free account
hub / github.com/TanStack/cli / getPackageManagerTypecheckCommand

Function getPackageManagerTypecheckCommand

packages/cli/tests-e2e/helpers.ts:242–272  ·  view source on GitHub ↗
(
  packageManager: 'pnpm' | 'npm' | 'yarn' | 'bun' | 'deno',
)

Source from the content-addressed store, hash-verified

240}
241
242function 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
274async function runQualityGates(
275 appDir: string,

Callers 1

runQualityGatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected