npm-pkgbuild 11.6.1 → 11.7.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
|
@@ -289,8 +289,14 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
289
289
|
) {
|
|
290
290
|
let requirementsMet = true;
|
|
291
291
|
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
const requires = fragment.requires;
|
|
293
|
+
if(requires) {
|
|
294
|
+
if(requires.output && !output[requires.output] ) {
|
|
295
|
+
requirementMet = false;
|
|
296
|
+
console.log("skipping output");
|
|
297
|
+
}
|
|
298
|
+
if (requires.dependencies) {
|
|
299
|
+
for (const [p, v] of Object.entries(requires.dependencies)) {
|
|
294
300
|
const pkgVersion = packages.get(p);
|
|
295
301
|
|
|
296
302
|
if (pkgVersion === undefined || !satisfies(pkgVersion, v)) {
|
|
@@ -299,6 +305,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
299
305
|
}
|
|
300
306
|
}
|
|
301
307
|
}
|
|
308
|
+
}
|
|
302
309
|
|
|
303
310
|
if (requirementsMet) {
|
|
304
311
|
arch = new Set([...arch, ...fragment.arch]);
|