Skip to content

Commit

Permalink
fix(create-app): init new repo on create
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti committed Feb 22, 2024
1 parent c3173cf commit 7fe6e2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/create-app/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions libs/create-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';

Expand All @@ -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(
Expand Down

0 comments on commit 7fe6e2b

Please sign in to comment.