fix(create-app): init new repo on create (#53)

This commit is contained in:
Daniel Rochetti 2024-02-21 20:12:09 -08:00 committed by GitHub
parent c3173cfa00
commit 84436e819e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@fal-ai/create-app",
"version": "0.1.3",
"version": "0.1.4",
"description": "The fal app generator.",
"type": "module",
"license": "MIT",

View File

@ -87,6 +87,9 @@ async function main() {
fs.writeFileSync(`${appName}/.env.local`, envs);
process.chdir(path.join(process.cwd(), appName));
await execa('rm', ['-rf', '.git']);
await execa('git', ['init']);
spinner.text = '';
let startCommand = '';
@ -107,6 +110,9 @@ async function main() {
}
spinner.stop();
await execa('git', ['add', '.']);
await execa('git', ['commit', '-m', 'Initial commit']);
process.chdir('../');
log(
`${green.bold('Success!')} Created ${purple.bold(