MCPcopy
hub / github.com/redwoodjs/graphql / serverFileExists

Function serverFileExists

packages/cli/src/lib/project.js:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28export const serverFileExists = () => {
29 const serverFilePath = path.join(
30 getPaths().api.src,
31 `server.${isTypeScriptProject() ? 'ts' : 'js'}`,
32 )
33
34 return fs.existsSync(serverFilePath)
35}

Callers 5

builderFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
isServerFileSetupFunction · 0.90

Calls 3

isTypeScriptProjectFunction · 0.70
existsSyncMethod · 0.65
getPathsFunction · 0.50

Tested by

no test coverage detected