MCPcopy Create free account
hub / github.com/TanStack/cli / readCurrentProjectOptions

Function readCurrentProjectOptions

packages/create/src/custom-add-ons/shared.ts:153–166  ·  view source on GitHub ↗
(environment: Environment)

Source from the content-addressed store, hash-verified

151}
152
153export async function readCurrentProjectOptions(environment: Environment) {
154 const persistedOptions = await readConfigFileFromEnvironment(
155 environment,
156 process.cwd(),
157 )
158 if (!persistedOptions) {
159 environment.error(
160 'There is no .cta.json file in your project.',
161 `This is probably because this was created with an older version of create-tsrouter-app.`,
162 )
163 process.exit(1)
164 }
165 return persistedOptions
166}

Callers 5

validateAddOnSetupFunction · 0.85
updateAddOnInfoFunction · 0.85
compileAddOnFunction · 0.85
loadCurrentStarterInfoFunction · 0.85
shared.test.tsFile · 0.85

Calls 2

errorMethod · 0.80

Tested by

no test coverage detected