npm-pkgbuild 13.1.4 → 13.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "13.1.4",
3
+ "version": "13.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -25,8 +25,14 @@ const { version, description } = JSON.parse(
25
25
 
26
26
  program.description(description).version(version);
27
27
 
28
- allOutputs.forEach(o => program.option(`--${o.name}`, o.description));
29
- allInputs.forEach(i => program.option(`--${i.name}`, i.description));
28
+ allOutputs.forEach(o => {
29
+ program.option(`--${o.name}`, o.description);
30
+ program.option(`--no-${o.name}`, `do not ${o.description} output`);
31
+ });
32
+
33
+ allInputs.forEach(i => {
34
+ program.option(`--${i.name}`, i.description);
35
+ });
30
36
 
31
37
  program
32
38
  .option("--verbose", "be more verbose", false)
@@ -76,7 +82,7 @@ program
76
82
  }
77
83
 
78
84
  for (const outputFactory of allOutputs.filter(
79
- o => options[o.name] === true || output[o.name] !== undefined
85
+ o => (options[o.name] === true || output[o.name] !== undefined) && options[o.name] !== false
80
86
  )) {
81
87
  if (
82
88
  options.available &&