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

Function runQualityGates

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

Source from the content-addressed store, hash-verified

272}
273
274async function runQualityGates(
275 appDir: string,
276 packageManager: 'pnpm' | 'npm' | 'yarn' | 'bun' | 'deno',
277) {
278 const build = getPackageManagerCommandForScript(packageManager, 'build')
279 await runCommand(build.command, build.args, {
280 cwd: appDir,
281 env: {
282 CI: '1',
283 },
284 })
285
286 const typecheck = getPackageManagerTypecheckCommand(packageManager)
287 await runCommand(typecheck.command, typecheck.args, {
288 cwd: appDir,
289 env: {
290 CI: '1',
291 },
292 })
293}
294
295function envBoolean(name: string, defaultValue: boolean) {
296 const value = process.env[name]

Callers 1

createAppFixtureFunction · 0.85

Calls 3

runCommandFunction · 0.85

Tested by

no test coverage detected