MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / hasPubspec

Function hasPubspec

src/shared/utils/fs.ts:203–205  ·  view source on GitHub ↗
(folder: string)

Source from the content-addressed store, hash-verified

201}
202
203export function hasPubspec(folder: string): boolean {
204 return existsAndIsFileSync(path.join(folder, "pubspec.yaml"));
205}
206
207async function hasPubspecAsync(folder: string): Promise<boolean> {
208 return await existsAndIsFileAsync(path.join(folder, "pubspec.yaml"));

Callers 6

fs.test.tsFile · 0.90
locateBestProjectRootFunction · 0.90
projectCanUsePackageTestFunction · 0.90
scanWorkspaceMethod · 0.90
projectReferencesFlutterFunction · 0.85
referencesBuildRunnerFunction · 0.85

Calls 1

existsAndIsFileSyncFunction · 0.85

Tested by

no test coverage detected