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

Function hasPackageMapFile

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

Source from the content-addressed store, hash-verified

197}
198
199export function hasPackageMapFile(folder: string): boolean {
200 return existsAndIsFileSync(path.join(folder, ".dart_tool", "package_config.json"));
201}
202
203export function hasPubspec(folder: string): boolean {
204 return existsAndIsFileSync(path.join(folder, "pubspec.yaml"));

Callers 2

fs.test.tsFile · 0.90
locateBestProjectRootFunction · 0.90

Calls 1

existsAndIsFileSyncFunction · 0.85

Tested by

no test coverage detected