(targetPath: string)
| 8 | * Checks if babel.config.js exists in the target path |
| 9 | */ |
| 10 | export 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 |