Improve create-twenty-app command (#18226)

as title
This commit is contained in:
martmull
2026-02-25 14:10:47 +01:00
committed by GitHub
parent e7f958c9cf
commit 448241540d
4 changed files with 11 additions and 16 deletions
@@ -6,7 +6,13 @@ const execPromise = promisify(exec);
export const install = async (root: string) => {
try {
await execPromise('yarn', { cwd: root });
await execPromise('corepack enable', { cwd: root });
} catch (error: any) {
console.warn(chalk.yellow('corepack enabled failed:'), error.stderr);
}
try {
await execPromise('yarn install', { cwd: root });
} catch (error: any) {
console.error(chalk.red('yarn install failed:'), error.stdout);
}