npm-pkgbuild 10.12.3 → 10.13.0
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 -2
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
|
|
@@ -159,7 +163,11 @@ export async function* extractFromPackage(options = {}) {
|
|
|
159
163
|
const pkgbuild = json.pkgbuild;
|
|
160
164
|
|
|
161
165
|
if (pkgbuild) {
|
|
162
|
-
if (
|
|
166
|
+
if (modulePath) {
|
|
167
|
+
if (!pkgbuild.abstract) {
|
|
168
|
+
dependencies[pkgbuild.name || json.name] = ">=" + json.version;
|
|
169
|
+
}
|
|
170
|
+
} else {
|
|
163
171
|
if (json.cpu) {
|
|
164
172
|
for (const a of asArray(json.cpu)) {
|
|
165
173
|
arch.add(npmArchMapping[a]);
|