MCPcopy
hub / github.com/vitejs/vite / hasRootFile

Function hasRootFile

packages/vite/src/node/server/searchRoot.ts:56–58  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

54}
55
56function hasRootFile(root: string): boolean {
57 return ROOT_FILES.some((file) => fs.existsSync(join(root, file)))
58}
59
60function hasPackageJSON(root: string) {
61 const path = join(root, 'package.json')

Callers 1

searchForWorkspaceRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected