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

Function getCurrentConfiguration

packages/create/src/add-to-app.ts:68–82  ·  view source on GitHub ↗
(
  environment: Environment,
  cwd: string,
)

Source from the content-addressed store, hash-verified

66}
67
68export async function getCurrentConfiguration(
69 environment: Environment,
70 cwd: string,
71) {
72 const persistedOptions = await readConfigFileFromEnvironment(environment, cwd)
73 if (!persistedOptions) {
74 environment.error(
75 'There is no .cta.json file in your project.',
76 'This is probably because this was created with an older version of create-tsrouter-app.',
77 )
78 return undefined
79 }
80
81 return persistedOptions
82}
83
84export async function writeFiles(
85 environment: Environment,

Callers 2

addToAppFunction · 0.85
add-to-app.test.tsFile · 0.85

Calls 2

errorMethod · 0.80

Tested by

no test coverage detected