Skip to content

Commit 4676217

Browse files
committed
add packageSourceCredentials
1 parent bdd38d1 commit 4676217

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

dist/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) {
163163
]
164164
});
165165
});
166+
xmlSource[1].configuration.push({
167+
packageSourceCredentials
168+
});
166169
// If NuGet fixes itself such that on Linux it can look for environment variables in the config file (it doesn't seem to work today),
167170
// use this for the value above
168171
// process.platform == 'win32'

src/authutil.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ function writeFeedToFile(
172172
});
173173
});
174174

175+
xmlSource[1].configuration.push({
176+
packageSourceCredentials
177+
});
178+
175179
// If NuGet fixes itself such that on Linux it can look for environment variables in the config file (it doesn't seem to work today),
176180
// use this for the value above
177181
// process.platform == 'win32'

0 commit comments

Comments
 (0)