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

Function isTypeScriptProject

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

Source from the content-addressed store, hash-verified

5import { getPaths } from '.'
6
7export const isTypeScriptProject = () => {
8 const paths = getPaths()
9 return (
10 fs.existsSync(path.join(paths.web.base, 'tsconfig.json')) ||
11 fs.existsSync(path.join(paths.api.base, 'tsconfig.json'))
12 )
13}
14
15export const sides = () => {
16 const paths = getPaths()

Callers 15

handlerFunction · 0.90
setupServerFileTasksFunction · 0.90
tasksFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
realtimeExistsFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
builderFunction · 0.90
handlerFunction · 0.90

Calls 2

existsSyncMethod · 0.65
getPathsFunction · 0.50

Tested by

no test coverage detected