npm-pkgbuild 11.1.15 → 11.1.16
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
|
@@ -322,9 +322,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
322
322
|
yield result;
|
|
323
323
|
} else {
|
|
324
324
|
for (const a of [...arch].sort()) {
|
|
325
|
-
if (variant.restrictArch.size
|
|
326
|
-
console.log("RESTRICT", a);
|
|
327
|
-
} else {
|
|
325
|
+
if (variant.restrictArch.size === 0 || variant.restrictArch.has(a)) {
|
|
328
326
|
result.variant.arch = a;
|
|
329
327
|
result.properties.arch = [a];
|
|
330
328
|
yield result;
|
package/src/output/docker.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { fieldProvider, copyEntries, utf8StreamOptions } from "../util.mjs";
|
|
|
13
13
|
|
|
14
14
|
const DOCKERFILE = "Dockerfile";
|
|
15
15
|
|
|
16
|
-
function
|
|
16
|
+
function* keyValueLines(key, value, options) {
|
|
17
17
|
yield `LABEL ${key}=${value}${options.lineEnding}`;
|
|
18
18
|
}
|
|
19
19
|
|