@@ -16,7 +16,6 @@ module.exports = generators.Base.extend({
1616 description : this . pkg . description ,
1717 version : this . pkg . version ,
1818 homepage : this . pkg . homepage
19- // babel: Boolean(this.options.babel)
2019 } ;
2120
2221 if ( _ . isObject ( this . pkg . author ) ) {
@@ -135,28 +134,29 @@ module.exports = generators.Base.extend({
135134 if ( this . props . keywords ) {
136135 pkg . keywords = _ . uniq ( this . props . keywords . concat ( pkg . keywords ) ) ;
137136 }
138-
139137 // Let's extend package.json so we're not overwriting user previous fields
140138 this . fs . writeJSON ( this . destinationPath ( 'package.json' ) , pkg ) ;
141139 } ,
142140
143141 templates : function ( ) {
142+ var pkg = this . fs . readJSON ( this . destinationPath ( 'package.json' ) , { } ) ;
144143 var templates = [
145144 '.gitignore' ,
145+ '.typingsrc' ,
146+ '.vscode/settings.json' ,
147+ '.vscode/tasks.json' ,
148+ 'README.md' ,
146149 'tsconfig.json' ,
147150 'tslint.json' ,
148- 'typingsrc' ,
149- '.vscode/settings.json' ,
150- '.vscode/tasks.json' ] ;
151+ 'typings.json' ,
152+ ] ;
151153 for ( template of templates ) {
152154 var src = this . templatePath ( template ) ;
153155 var dest = this . destinationPath ( template ) ;
154- // this.log(`Writing ${src} to ${dest}`);
155- this . fs . copyTpl (
156- src ,
157- dest ) ;
156+ //this.log(`Writing ${src} to ${dest}`);
157+ this . fs . copyTpl ( src , dest , { pkg : pkg } ) ;
158158 }
159- }
159+ } ,
160160 } ,
161161
162162 installing : function ( ) {
0 commit comments