We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bf32f2 commit 9499582Copy full SHA for 9499582
src/create.ts
@@ -69,7 +69,6 @@ export default async function create(argv: yargs.Arguments<any>) {
69
type: 'input',
70
name: 'description',
71
message: 'What is the description for the package?',
72
- validate: input => Boolean(input),
73
},
74
{
75
@@ -177,6 +176,15 @@ export default async function create(argv: yargs.Arguments<any>) {
177
176
178
await copyDir(TEMPLATE, folder);
179
+ try {
180
+ await child_process.execSync(
181
+ 'git init && git add . && git commit -m "chore: initial commit"',
182
+ { cwd: folder }
183
+ );
184
+ } catch (e) {
185
+ // Ignore error
186
+ }
187
+
188
console.log(
189
dedent(chalk`
190
Project created successfully at {blue ${argv.name}}!
0 commit comments