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

Function scanProjectDirectory

packages/create/scripts/generate-manifest.mjs:93–106  ·  view source on GitHub ↗
(frameworkDir)

Source from the content-addressed store, hash-verified

91}
92
93function scanProjectDirectory(frameworkDir) {
94 const projectDirectory = join(frameworkDir, 'project')
95 const baseDirectory = join(projectDirectory, 'base')
96 const basePackagePath = join(baseDirectory, 'package.json')
97 const optionalPackagesPath = join(projectDirectory, 'packages.json')
98
99 return {
100 base: findFilesRecursively(baseDirectory),
101 basePackageJSON: existsSync(basePackagePath) ? readJson(basePackagePath) : {},
102 optionalPackages: existsSync(optionalPackagesPath)
103 ? readJson(optionalPackagesPath)
104 : {},
105 }
106}
107
108function scanCatalogDirectory(addOnsBase) {
109 if (!existsSync(addOnsBase)) {

Callers 3

createFrameworkFunction · 0.70

Calls 2

readJsonFunction · 0.85
findFilesRecursivelyFunction · 0.70

Tested by

no test coverage detected