npm-pkgbuild 7.8.2 → 7.9.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 +1 -1
- package/src/npm-pkgbuild-cli.mjs +5 -2
- package/src/output/deb.mjs +2 -2
package/package.json
CHANGED
package/src/npm-pkgbuild-cli.mjs
CHANGED
|
@@ -31,6 +31,7 @@ program
|
|
|
31
31
|
return Object.fromEntries([kv]);
|
|
32
32
|
})
|
|
33
33
|
.option("-d --destination <dir>", "where to put the package(s)", cwd)
|
|
34
|
+
.option("--verbose", "be more verbose", false)
|
|
34
35
|
.option("-s --staging <dir>", "staging directory", "build")
|
|
35
36
|
.option(
|
|
36
37
|
"-c --content <dir>",
|
|
@@ -77,13 +78,15 @@ program
|
|
|
77
78
|
const context = createContext({ properties });
|
|
78
79
|
const output = new outputFactory(properties);
|
|
79
80
|
|
|
81
|
+
if(options.verbose) {
|
|
82
|
+
console.log(output.properties);
|
|
83
|
+
}
|
|
84
|
+
|
|
80
85
|
const fileName = await output.execute(
|
|
81
86
|
aggregateFifo(sources.map(c => c[Symbol.asyncIterator]())),
|
|
82
87
|
options,
|
|
83
88
|
object => context.expand(object)
|
|
84
89
|
);
|
|
85
|
-
|
|
86
|
-
console.log(fileName);
|
|
87
90
|
}
|
|
88
91
|
} catch (e) {
|
|
89
92
|
console.log(e);
|
package/src/output/deb.mjs
CHANGED
|
@@ -63,8 +63,8 @@ const fields = {
|
|
|
63
63
|
Version: { alias: "version", type: "string", mandatory: true },
|
|
64
64
|
Maintainer: { alias: "maintainer", type: "string", mandatory: true },
|
|
65
65
|
Description: { alias: "description", type: "string", mandatory: true },
|
|
66
|
-
Section: { type: "string"
|
|
67
|
-
Priority: { type: "string"
|
|
66
|
+
Section: { type: "string" },
|
|
67
|
+
Priority: { type: "string" },
|
|
68
68
|
Essential: { type: "boolean" },
|
|
69
69
|
Origin: { type: "string" },
|
|
70
70
|
Architecture: {
|