npm-pkgbuild 10.20.1 → 10.20.3
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 -5
package/package.json
CHANGED
|
@@ -115,6 +115,8 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
115
115
|
const requires = pkgbuild.requires;
|
|
116
116
|
delete pkgbuild.requires;
|
|
117
117
|
|
|
118
|
+
let name = `${packageContent.name}[${i++}]`;
|
|
119
|
+
|
|
118
120
|
let priority = 1;
|
|
119
121
|
|
|
120
122
|
if (requires) {
|
|
@@ -136,18 +138,21 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
136
138
|
priority++;
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
if (
|
|
140
|
-
console.log(
|
|
141
|
+
if (fullfilled) {
|
|
142
|
+
console.log(`${name}: requirement fullfilled`, requires);
|
|
143
|
+
} else {
|
|
144
|
+
console.log(`${name}: requirement not fullfilled`, requires);
|
|
141
145
|
continue;
|
|
142
146
|
}
|
|
143
147
|
}
|
|
144
148
|
|
|
149
|
+
console.log(`${name}: load`);
|
|
145
150
|
const fragment = {
|
|
146
|
-
name
|
|
151
|
+
name,
|
|
152
|
+
priority,
|
|
147
153
|
depends: packageContent.engines || {},
|
|
148
154
|
arch: new Set(),
|
|
149
|
-
restrictArch: new Set()
|
|
150
|
-
priority
|
|
155
|
+
restrictArch: new Set()
|
|
151
156
|
};
|
|
152
157
|
|
|
153
158
|
if (packageContent.cpu) {
|