zarro 1.194.0 → 1.196.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.
|
@@ -1153,7 +1153,27 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
1153
1153
|
clearCaches.httpCache = DotNetCache.httpCache;
|
|
1154
1154
|
clearCaches.globalPackages = DotNetCache.globalPackages;
|
|
1155
1155
|
clearCaches.temp = DotNetCache.temp;
|
|
1156
|
+
async function run(opts) {
|
|
1157
|
+
verifyExists(opts, `no options passed to create`);
|
|
1158
|
+
verifyNonEmptyString(opts.target, `target was not specified`);
|
|
1159
|
+
const args = ["run", "--project", opts.target];
|
|
1160
|
+
pushConfiguration(args, opts.configuration);
|
|
1161
|
+
pushIfSet(args, opts.framework, "--framework");
|
|
1162
|
+
pushRuntime(args, opts);
|
|
1163
|
+
pushIfSet(args, opts.launchProfile, "--launch-profile");
|
|
1164
|
+
pushFlag(args, opts.noLaunchProfile, "--no-launch-profile");
|
|
1165
|
+
pushFlag(args, opts.noBuild, "--no-build");
|
|
1166
|
+
pushFlag(args, opts.interactive, "--interactive");
|
|
1167
|
+
pushFlag(args, opts.noRestore, "--no-restore");
|
|
1168
|
+
pushFlag(args, opts.noSelfContained, "--no-self-contained");
|
|
1169
|
+
pushFlag(args, opts.selfContained, "--self-contained");
|
|
1170
|
+
pushIfSet(args, opts.os, "--os");
|
|
1171
|
+
pushFlag(args, opts.disableBuildServers, "--disable-build-servers");
|
|
1172
|
+
pushIfSet(args, opts.artifactsPath, "--artifacts-path");
|
|
1173
|
+
return runDotNetWith(args);
|
|
1174
|
+
}
|
|
1156
1175
|
module.exports = {
|
|
1176
|
+
run,
|
|
1157
1177
|
test,
|
|
1158
1178
|
build,
|
|
1159
1179
|
pack,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parseBool = void 0;
|
|
4
|
+
const ZarroError = requireModule("zarro-error");
|
|
4
5
|
const truthy = [
|
|
5
6
|
"1",
|
|
6
7
|
"yes",
|
|
@@ -18,7 +19,7 @@ function parseBool(value, strict) {
|
|
|
18
19
|
return false;
|
|
19
20
|
}
|
|
20
21
|
if (strict) {
|
|
21
|
-
throw new
|
|
22
|
+
throw new ZarroError(`could not parse '${value}' as a boolean value`);
|
|
22
23
|
}
|
|
23
24
|
return !!value;
|
|
24
25
|
}
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1543,6 +1543,24 @@ declare global {
|
|
|
1543
1543
|
output?: string;
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
1546
|
+
interface DotNetRunProjectOptions
|
|
1547
|
+
extends DotNetMsBuildOptions {
|
|
1548
|
+
target: string;
|
|
1549
|
+
framework?: string;
|
|
1550
|
+
runtime?: string;
|
|
1551
|
+
configuration?: string;
|
|
1552
|
+
launchProfile?: string;
|
|
1553
|
+
noLaunchProfile?: boolean;
|
|
1554
|
+
noBuild?: boolean;
|
|
1555
|
+
interactive?: boolean;
|
|
1556
|
+
noRestore?: boolean;
|
|
1557
|
+
selfContained?: boolean;
|
|
1558
|
+
noSelfContained?: boolean;
|
|
1559
|
+
os?: string;
|
|
1560
|
+
disableBuildServers?: boolean;
|
|
1561
|
+
artifactsPath?: string;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1546
1564
|
interface DotNetNugetPushOptions
|
|
1547
1565
|
extends DotNetMsBuildOptions {
|
|
1548
1566
|
target: string;
|
|
@@ -1707,8 +1725,10 @@ declare global {
|
|
|
1707
1725
|
globalPackages: DotNetCache;
|
|
1708
1726
|
temp: DotNetCache;
|
|
1709
1727
|
}
|
|
1728
|
+
type DotNetRunProjectFunction = (opts: DotNetRunProjectOptions) => Promise<SystemResult | SystemError>;
|
|
1710
1729
|
|
|
1711
1730
|
interface DotNetCli {
|
|
1731
|
+
run: DotNetRunProjectFunction;
|
|
1712
1732
|
clean: DotNetCleanFunction;
|
|
1713
1733
|
build: DotNetBuildFunction;
|
|
1714
1734
|
test: DotNetTestFunction;
|