MCPcopy Create free account
hub / github.com/craftreactnative/ui / babelConfigExists

Function babelConfigExists

cli/src/utils/build-config.ts:10–13  ·  view source on GitHub ↗
(targetPath: string)

Source from the content-addressed store, hash-verified

8 * Checks if babel.config.js exists in the target path
9 */
10export async function babelConfigExists(targetPath: string): Promise<boolean> {
11 const babelConfigPath = path.join(targetPath, "babel.config.js");
12 return fs.pathExists(babelConfigPath);
13}
14
15/**
16 * Creates a new babel.config.js file with the unistyles plugin

Callers 1

setupBabelConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected