zarro 1.94.0 → 1.94.1

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.
@@ -1,23 +1,25 @@
1
- const { publish } = require("gulp-dotnet-cli"),
2
- env = requireModule("env"),
3
- gulp = requireModule("gulp");
4
-
5
- gulp.task(
6
- "dotnet-publish",
7
- "Performs `dotnet publish` on all non-test projects in the tree",
8
- () => {
9
- const publishOpts = {
10
- configuration: env.resolve("DOTNET_PUBLISH_BUILD_CONFIGURATION", "BUILD_CONFIGURATION"),
11
- runtime: env.resolve("DOTNET_PUBLISH_RUNTIMES"),
12
- output: env.resolve("OUTPUT")
13
- };
14
-
15
- const testInclusionsInverted = env.resolveArray("TEST_INCLUDE")
16
- .map(p => `!${p}.csproj`)
17
- return gulp
18
- .src(["**/*.csproj"].concat(testInclusionsInverted))
19
- .pipe(
20
- publish(publishOpts)
21
- );
22
- }
23
- );
1
+ const
2
+ { publish } = require("gulp-dotnet-cli"),
3
+ env = requireModule("env"),
4
+ gulp = requireModule("gulp");
5
+
6
+ gulp.task(
7
+ "dotnet-publish",
8
+ "Performs `dotnet publish` on all non-test projects in the tree",
9
+ () => {
10
+ const publishOpts = {
11
+ configuration: env.resolve("DOTNET_PUBLISH_BUILD_CONFIGURATION", "BUILD_CONFIGURATION"),
12
+ runtime: env.resolve("DOTNET_PUBLISH_RUNTIMES"),
13
+ output: env.resolve("OUTPUT"),
14
+ selfContained: env.resolve("DOTNET_PUBLISH_SELF_CONTAINED")
15
+ };
16
+
17
+ const testInclusionsInverted = env.resolveArray("TEST_INCLUDE")
18
+ .map(p => `!${p}.csproj`)
19
+ return gulp
20
+ .src(["**/*.csproj"].concat(testInclusionsInverted))
21
+ .pipe(
22
+ publish(publishOpts)
23
+ );
24
+ }
25
+ );
@@ -339,6 +339,12 @@ module.exports = function _env(env) {
339
339
  default: "Release"
340
340
  });
341
341
 
342
+ env.register({
343
+ name: "DOTNET_PUBLISH_SELF_CONTAINED",
344
+ help: "Whether to instruct dotnet to build published artifacts as self-contained",
345
+ default: true
346
+ });
347
+
342
348
  env.register({
343
349
  name: "NO_UNICODE",
344
350
  help: "Prevent unicode output for status lines",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.94.0",
3
+ "version": "1.94.1",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "./index.js"