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",
|
"name": "@fal-ai/create-app",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"description": "The fal app generator.",
|
"description": "The fal app generator.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@ -87,6 +87,9 @@ async function main() {
|
|||||||
fs.writeFileSync(`${appName}/.env.local`, envs);
|
fs.writeFileSync(`${appName}/.env.local`, envs);
|
||||||
|
|
||||||
process.chdir(path.join(process.cwd(), appName));
|
process.chdir(path.join(process.cwd(), appName));
|
||||||
|
await execa('rm', ['-rf', '.git']);
|
||||||
|
await execa('git', ['init']);
|
||||||
|
|
||||||
spinner.text = '';
|
spinner.text = '';
|
||||||
let startCommand = '';
|
let startCommand = '';
|
||||||
|
|
||||||
@ -107,6 +110,9 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
spinner.stop();
|
spinner.stop();
|
||||||
|
await execa('git', ['add', '.']);
|
||||||
|
await execa('git', ['commit', '-m', 'Initial commit']);
|
||||||
|
|
||||||
process.chdir('../');
|
process.chdir('../');
|
||||||
log(
|
log(
|
||||||
`${green.bold('Success!')} Created ${purple.bold(
|
`${green.bold('Success!')} Created ${purple.bold(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user