npm-pkgbuild 11.3.1 → 11.4.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.
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ import { ARCH } from "./output/arch.mjs";
|
|
|
12
12
|
import { RPM } from "./output/rpm.mjs";
|
|
13
13
|
import { OCI } from "./output/oci.mjs";
|
|
14
14
|
import { DOCKER } from "./output/docker.mjs";
|
|
15
|
+
import { BUILDAH } from "./output/buildah.mjs";
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* All content providers
|
|
@@ -25,7 +26,7 @@ export const allInputs = [
|
|
|
25
26
|
/**
|
|
26
27
|
* All output formats
|
|
27
28
|
*/
|
|
28
|
-
export const allOutputs = [DEBIAN, ARCH, RPM, OCI, DOCKER];
|
|
29
|
+
export const allOutputs = [DEBIAN, ARCH, RPM, OCI, DOCKER, BUILDAH];
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
32
|
* Node architecture name to os native arch name mapping
|
package/src/output/docker.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { fieldProvider, copyEntries, utf8StreamOptions } from "../util.mjs";
|
|
|
14
14
|
const DOCKERFILE = "Dockerfile";
|
|
15
15
|
|
|
16
16
|
function* keyValueLines(key, value, options) {
|
|
17
|
-
yield `LABEL ${key}
|
|
17
|
+
yield `LABEL ${key}="${value}${options.lineEnding}"`;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const labelKeyValuePairs = {
|
|
@@ -28,7 +28,7 @@ export class DOCKER extends Packager {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
static get description() {
|
|
31
|
-
return
|
|
31
|
+
return `generate container image with ${this.name}`;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
async execute(
|
|
@@ -87,7 +87,7 @@ ENTRYPOINT ["node", ${Object.values(options.entrypoints)[0]}]
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
if (!options.dry) {
|
|
90
|
-
const docker = await execa(
|
|
90
|
+
const docker = await execa(this.constructor.name, ["build", staging], {
|
|
91
91
|
cwd: staging
|
|
92
92
|
});
|
|
93
93
|
|
|
@@ -105,5 +105,6 @@ ENTRYPOINT ["node", ${Object.values(options.entrypoints)[0]}]
|
|
|
105
105
|
*/
|
|
106
106
|
const fields = {
|
|
107
107
|
version: { type: "string", mandatory: true },
|
|
108
|
+
description: { type: "string" },
|
|
108
109
|
author: { alias: "maintainer", type: "string" }
|
|
109
110
|
};
|