From 8b2cd56834b456a976f0d6445c5baa8e4e3369ce Mon Sep 17 00:00:00 2001 From: Robin-Manuel Thiel Date: Fri, 9 Sep 2022 18:11:16 +0200 Subject: [PATCH] Fix script generation --- src/app-selection/index.ts | 2 +- src/app/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app-selection/index.ts b/src/app-selection/index.ts index a1d8a7d..3751b9d 100644 --- a/src/app-selection/index.ts +++ b/src/app-selection/index.ts @@ -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'), diff --git a/src/app/index.ts b/src/app/index.ts index 98dc18d..dd551bf 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -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 {