Skip to content

Commit

Permalink
Fix script generation
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmanuelthiel committed Sep 9, 2022
1 parent 58d4282 commit 8b2cd56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app-selection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AppSelectionGenerator extends BaseSelectionGenerator {
new GeneratorSelection('Yeoman', 'wemogy:yeoman'),
new GeneratorSelection('Git', 'wemogy:git'),
new GeneratorSelection('Documentation', 'wemogy:docs'),
new GeneratorSelection('Scripts', 'wemogy:scripts'),
new GeneratorSelection('Scripts', 'wemogy:script'),
new GeneratorSelection('wemogy CLI', 'wemogy:wemogy-cli'),
new SeparatorSelection(),
new GeneratorSelection('ReactBase', 'wemogy:reactbase'),
Expand Down
2 changes: 1 addition & 1 deletion src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class AppGenerator extends Generator {
public writing(): void {
if (this.answers?.update) {
this.log('Installing update...');
this.spawnCommandSync('npm', ['update', '-g', 'generator-wemogy']);
this.spawnCommandSync('npm', ['upgrade', '-g', 'generator-wemogy']);
this.log('Update installed.');
this.composeWith('wemogy:app');
} else {
Expand Down

0 comments on commit 8b2cd56

Please sign in to comment.