MCPcopy
hub / github.com/vercel/next.js / isUsingAppDir

Function isUsingAppDir

packages/next-codemod/bin/upgrade.ts:468–473  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

466 )
467}
468function isUsingAppDir(projectPath: string): boolean {
469 return (
470 fs.existsSync(path.resolve(projectPath, 'app')) ||
471 fs.existsSync(path.resolve(projectPath, 'src/app'))
472 )
473}
474
475/*
476 * Heuristics are used to determine whether to Turbopack is enabled or not and

Callers 1

runUpgradeFunction · 0.85

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected