fix(create-app): init new repo on create (#53)
This commit is contained in:
parent
c3173cfa00
commit
84436e819e
@ -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",
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user