npm-pkgbuild 10.20.0 → 10.20.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "10.20.0",
3
+ "version": "10.20.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -118,25 +118,30 @@ export async function* extractFromPackage(options = {}, env = {}) {
118
118
  let priority = 1;
119
119
 
120
120
  if (requires) {
121
+ let fullfilled = true;
122
+
121
123
  if (requires.properties) {
122
- let fullfilled = true;
123
124
  for (const [k, v] of Object.entries(requires.properties)) {
124
125
  if (root.properties[k] !== v) {
125
126
  fullfilled = false;
126
127
  break;
127
128
  }
128
129
  }
129
- if (!fullfilled) {
130
- continue;
131
- }
132
130
  }
133
131
 
134
132
  if (requires.environment) {
135
133
  if (env[requires.environment.has] === undefined) {
136
- continue;
134
+ fullfilled = false;
137
135
  }
138
136
  priority++;
139
137
  }
138
+
139
+ if (fullfilled) {
140
+ console.log("requirement fullfilled", requires);
141
+ } else {
142
+ console.log("requirement not fullfilled", requires);
143
+ continue;
144
+ }
140
145
  }
141
146
 
142
147
  const fragment = {