Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
VAlmea committed Jan 19, 2023
1 parent 9ddf265 commit 5608340
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions generators/spa/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,20 @@ module.exports = class extends DnnGeneratorBase {
}

install() {
if (this.props.spaType !== "VueJS")
this._writeSolution();
this._defaultInstall();
this._writeSolution();
if (this.props.spaType !== "VueJS") {
try {
this._defaultInstall();
} catch { }
}
}

end() {
this.log(chalk.white('Installed Dependencies.'));
this.log(chalk.white('Running dotnet restore.'));
this.spawnCommand('dotnet', ['restore']);
process.chdir('../');
this.log(chalk.white('All Ready!'));
process.chdir('Modules/' + this.props.moduleName);
this.spawnCommand('dotnet', ['restore'], { cwd: process.cwd() }).then(() => {
this.log(chalk.white('All Ready!'));
});
}
};

0 comments on commit 5608340

Please sign in to comment.