npm-pkgbuild 10.13.0 → 10.13.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 +6 -1
- package/src/package.mjs +1 -0
package/package.json
CHANGED
|
@@ -158,6 +158,7 @@ export async function* extractFromPackage(options = {}) {
|
|
|
158
158
|
let output = {};
|
|
159
159
|
let arch = new Set();
|
|
160
160
|
let restrictArch = new Set();
|
|
161
|
+
let groups;
|
|
161
162
|
|
|
162
163
|
function processPkg(json, dir, modulePath) {
|
|
163
164
|
const pkgbuild = json.pkgbuild;
|
|
@@ -165,9 +166,13 @@ export async function* extractFromPackage(options = {}) {
|
|
|
165
166
|
if (pkgbuild) {
|
|
166
167
|
if (modulePath) {
|
|
167
168
|
if (!pkgbuild.abstract) {
|
|
168
|
-
|
|
169
|
+
if(json.groups === groups) {
|
|
170
|
+
dependencies[pkgbuild.name || json.name] = ">=" + json.version;
|
|
171
|
+
}
|
|
169
172
|
}
|
|
170
173
|
} else {
|
|
174
|
+
groups = pkgbuild.groups;
|
|
175
|
+
|
|
171
176
|
if (json.cpu) {
|
|
172
177
|
for (const a of asArray(json.cpu)) {
|
|
173
178
|
arch.add(npmArchMapping[a]);
|