npm-pkgbuild 13.1.3 → 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.3",
3
+ "version": "13.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -55,7 +55,7 @@
55
55
  "aggregate-async-iterator": "^1.2.0",
56
56
  "commander": "^12.0.0",
57
57
  "compare-versions": "^6.1.0",
58
- "content-entry": "^6.0.0",
58
+ "content-entry": "^9.0.1",
59
59
  "content-entry-filesystem": "^6.0.0",
60
60
  "content-entry-transform": "^1.4.29",
61
61
  "execa": "^8.0.1",
@@ -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 &&
@@ -15,3 +15,4 @@ export class ContentProvider {
15
15
  */
16
16
  [Symbol.asyncIterator](): AsyncIterable<ContentEntry>;
17
17
  }
18
+ import { ContentEntry } from "content-entry";
@@ -101,6 +101,7 @@ export class DEBIAN extends Packager {
101
101
  arch: string;
102
102
  }): Promise<boolean>;
103
103
  get packageFileName(): string;
104
- hookFiles(properties: any): AsyncGenerator<any, void, unknown>;
104
+ hookFiles(properties: any): AsyncGenerator<StringContentEntry, void, unknown>;
105
105
  }
106
106
  import { Packager } from "./packager.mjs";
107
+ import { StringContentEntry } from "content-entry";
package/types/util.d.mts CHANGED
@@ -52,3 +52,4 @@ export type FunctionDecl = {
52
52
  body: string[];
53
53
  };
54
54
  export type Expander = Function;
55
+ import { ContentEntry } from "content-entry";