Skip to content

Commit 72dabb3

Browse files
After building "dotnet new" package, put it in "artifacts" dir
1 parent b731435 commit 72dabb3

File tree

1 file changed

+6
-1
lines changed
  • templates/package-builder/src/build

1 file changed

+6
-1
lines changed

templates/package-builder/src/build/build.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

198200
function runAllPrepublishScripts() {
@@ -226,7 +228,10 @@ rimraf.sync(distDir);
226228
mkdirp.sync(artifactsDir);
227229
runAllPrepublishScripts();
228230
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)));
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.

0 commit comments

Comments
 (0)