zarro 1.150.0 → 1.151.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gulp-tasks/modules/dotnet-cli.js +19 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
|
@@ -201,9 +201,26 @@
|
|
|
201
201
|
// error dump is not only unnecessary, it confuses
|
|
202
202
|
// the test handler wrt quackers output handling
|
|
203
203
|
opts.suppressStdIoInErrors = true;
|
|
204
|
+
incrementTempDbPortHintIfFound(opts.env);
|
|
204
205
|
return runDotNetWith(args, opts);
|
|
205
206
|
});
|
|
206
207
|
}
|
|
208
|
+
let tempDbPortIncrements = 0;
|
|
209
|
+
function incrementTempDbPortHintIfFound(env) {
|
|
210
|
+
if (env === undefined) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const current = env["TEMPDB_PORT_HINT"];
|
|
214
|
+
if (current === undefined) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
let port = parseInt(current);
|
|
218
|
+
if (isNaN(port)) {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
port += tempDbPortIncrements++;
|
|
222
|
+
env["TEMPDB_PORT_HINT"] = `${port}`;
|
|
223
|
+
}
|
|
207
224
|
async function listNugetSources() {
|
|
208
225
|
const raw = await runDotNetWith(["nuget", "list", "source"], {
|
|
209
226
|
suppressOutput: true
|
|
@@ -748,6 +765,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
748
765
|
removeNugetSource,
|
|
749
766
|
disableNugetSource,
|
|
750
767
|
enableNugetSource,
|
|
751
|
-
tryFindConfiguredNugetSource
|
|
768
|
+
tryFindConfiguredNugetSource,
|
|
769
|
+
incrementTempDbPortHintIfFound
|
|
752
770
|
};
|
|
753
771
|
})();
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1569,6 +1569,7 @@ declare global {
|
|
|
1569
1569
|
enableNugetSource: DotNetEnableNugetSourceFunction;
|
|
1570
1570
|
disableNugetSource: DotNetDisableNugetSourceFunction;
|
|
1571
1571
|
tryFindConfiguredNugetSource: DotNetTryMatchNugetSourceFunction;
|
|
1572
|
+
incrementTempDbPortHintIfFound: (env: Dictionary<string>) => void;
|
|
1572
1573
|
}
|
|
1573
1574
|
|
|
1574
1575
|
type ReadCsProjNode = (csproj: string) => Promise<string>;
|