Skip to content

Commit

Permalink
fix: move git init earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 21, 2022
1 parent 5d84f5e commit b2516b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generators/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ export default class Plugin extends Generator {

this.destinationRoot(directory);
this.env.cwd = this.destinationPath();

exec('git init', { cwd: this.env.cwd });
}

public writing(): void {
Expand Down Expand Up @@ -186,7 +188,6 @@ export default class Plugin extends Generator {
}

public end(): void {
exec('git init', { cwd: this.env.cwd });
exec('yarn', { cwd: this.env.cwd });
exec('yarn build', { cwd: this.env.cwd });

Expand Down

0 comments on commit b2516b2

Please sign in to comment.