File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
templates/package-builder/src/yeoman Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -133,11 +133,21 @@ class MyGenerator extends yeoman.Base {
133
133
inputFullPath = tempPath ;
134
134
}
135
135
136
- this . fs . copyTpl (
137
- inputFullPath ,
138
- destinationFullPath ,
139
- this . _answers
140
- ) ;
136
+ const outputDirBasename = path . basename ( path . dirname ( destinationFullPath ) ) ;
137
+ if ( outputDirBasename === 'dist' ) {
138
+ // Don't do token replacement in 'dist' files, as they might just randomly contain
139
+ // sequences like '<%=' even though they aren't actually template files
140
+ this . fs . copy (
141
+ inputFullPath ,
142
+ destinationFullPath
143
+ ) ;
144
+ } else {
145
+ this . fs . copyTpl (
146
+ inputFullPath ,
147
+ destinationFullPath ,
148
+ this . _answers
149
+ ) ;
150
+ }
141
151
}
142
152
} ) ;
143
153
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " generator-aspnetcore-spa" ,
3
- "version" : " 0.5.0 " ,
3
+ "version" : " 0.6.1 " ,
4
4
"description" : " Single-Page App templates for ASP.NET Core" ,
5
5
"author" : " Microsoft" ,
6
6
"license" : " Apache-2.0" ,
You can’t perform that action at this time.
0 commit comments