npm-pkgbuild 14.2.11 → 14.2.12
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
|
@@ -283,6 +283,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
283
283
|
}, await packageDirectory({ cwd: options.dir }));
|
|
284
284
|
|
|
285
285
|
if (root && Object.keys(variants).length === 0) {
|
|
286
|
+
// @ts-ignore
|
|
286
287
|
variants.default = root;
|
|
287
288
|
}
|
|
288
289
|
|
|
@@ -332,6 +333,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
332
333
|
}
|
|
333
334
|
}
|
|
334
335
|
|
|
336
|
+
// @ts-ignore
|
|
335
337
|
Object.assign(properties, root.properties);
|
|
336
338
|
|
|
337
339
|
properties.variant = name;
|
|
@@ -367,9 +369,11 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
367
369
|
}
|
|
368
370
|
|
|
369
371
|
for (const [name, output] of Object.entries(result.output)) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
372
|
+
const arch = mergeArchs(
|
|
373
|
+
result.properties.arch,
|
|
374
|
+
output.properties?.arch
|
|
375
|
+
);
|
|
376
|
+
if (arch !== undefined) {
|
|
373
377
|
result.properties.arch = arch;
|
|
374
378
|
}
|
|
375
379
|
|