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() {
193193
194194 // Clean up
195195 rimraf . sync ( './tmp' ) ;
196+
197+ return glob . sync ( path . join ( outputRoot , './*.nupkg' ) ) [ 0 ] ;
196198}
197199
198200function runAllPrepublishScripts ( ) {
@@ -226,7 +228,10 @@ rimraf.sync(distDir);
226228mkdirp . sync ( artifactsDir ) ;
227229runAllPrepublishScripts ( ) ;
228230buildYeomanNpmPackage ( 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 ) ) ) ;
230235
231236// Finally, create a .tar.gz file containing the built generator-aspnetcore-spa.
232237// The CI system can treat this as the final built artifact.
You can’t perform that action at this time.
0 commit comments