File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
templates/package-builder/src/yeoman/app Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import npmWhich = require('npm-which');
99const yosay = require ( 'yosay' ) ;
1010const toPascalCase = require ( 'to-pascal-case' ) ;
1111const isWindows = / ^ w i n / . test ( process . platform ) ;
12+ const generatorPackageJson = require ( path . resolve ( __dirname , '../package.json' ) ) ;
1213
1314// Paths matching these regexes will only be included if the user wants tests
1415const testSpecificPaths = [
@@ -48,7 +49,7 @@ class MyGenerator extends yeoman.Base {
4849 constructor ( args : string | string [ ] , options : any ) {
4950 super ( args , options ) ;
5051 this . _optionOrPrompt = optionOrPrompt ;
51- this . log ( yosay ( 'Welcome to the ASP.NET Core Single-Page App generator!' ) ) ;
52+ this . log ( yosay ( 'Welcome to the ASP.NET Core Single-Page App generator!\n\nVersion: ' + generatorPackageJson . version ) ) ;
5253
5354 if ( isWindows ) {
5455 assertNpmVersionIsAtLeast ( '3.0.0' ) ;
You can’t perform that action at this time.
0 commit comments