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