File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
templates/package-builder/src/build Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ function buildDotNetNewNuGetPackage() {
193
193
194
194
// Clean up
195
195
rimraf . sync ( './tmp' ) ;
196
+
197
+ return glob . sync ( path . join ( outputRoot , './*.nupkg' ) ) [ 0 ] ;
196
198
}
197
199
198
200
function runAllPrepublishScripts ( ) {
@@ -226,7 +228,10 @@ rimraf.sync(distDir);
226
228
mkdirp . sync ( artifactsDir ) ;
227
229
runAllPrepublishScripts ( ) ;
228
230
buildYeomanNpmPackage ( yeomanOutputRoot ) ;
229
- buildDotNetNewNuGetPackage ( ) ;
231
+ const dotNetNewNupkgPath = buildDotNetNewNuGetPackage ( ) ;
232
+
233
+ // Move the .nupkg file to the artifacts dir
234
+ fs . renameSync ( dotNetNewNupkgPath , path . join ( artifactsDir , path . basename ( dotNetNewNupkgPath ) ) ) ;
230
235
231
236
// Finally, create a .tar.gz file containing the built generator-aspnetcore-spa.
232
237
// The CI system can treat this as the final built artifact.
You can’t perform that action at this time.
0 commit comments