Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 72dabb3

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

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Filter options
  • templates/package-builder/src/build
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: templates/package-builder/src/build/build.ts
+6-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.