npm-pkgbuild 10.12.3 → 10.13.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 +1 -1
- package/src/extract-from-package.mjs +15 -2
- package/src/package.mjs +1 -0
package/package.json
CHANGED
|
@@ -15,7 +15,11 @@ import { RPM } from "./output/rpm.mjs";
|
|
|
15
15
|
/**
|
|
16
16
|
* All content providers
|
|
17
17
|
*/
|
|
18
|
-
export const allInputs = [
|
|
18
|
+
export const allInputs = [
|
|
19
|
+
NPMPackContentProvider,
|
|
20
|
+
NodeModulesContentProvider,
|
|
21
|
+
NFTContentProvider
|
|
22
|
+
];
|
|
19
23
|
|
|
20
24
|
/**
|
|
21
25
|
* All output formats
|
|
@@ -154,12 +158,21 @@ export async function* extractFromPackage(options = {}) {
|
|
|
154
158
|
let output = {};
|
|
155
159
|
let arch = new Set();
|
|
156
160
|
let restrictArch = new Set();
|
|
161
|
+
let groups;
|
|
157
162
|
|
|
158
163
|
function processPkg(json, dir, modulePath) {
|
|
159
164
|
const pkgbuild = json.pkgbuild;
|
|
160
165
|
|
|
161
166
|
if (pkgbuild) {
|
|
162
|
-
if (
|
|
167
|
+
if (modulePath) {
|
|
168
|
+
if (!pkgbuild.abstract) {
|
|
169
|
+
if(pkgbuild.groups === groups) {
|
|
170
|
+
dependencies[pkgbuild.name || json.name] = ">=" + json.version;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
} else {
|
|
174
|
+
groups = pkgbuild.groups;
|
|
175
|
+
|
|
163
176
|
if (json.cpu) {
|
|
164
177
|
for (const a of asArray(json.cpu)) {
|
|
165
178
|
arch.add(npmArchMapping[a]);
|