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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "10.12.3",
3
+ "version": "10.13.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -15,7 +15,11 @@ import { RPM } from "./output/rpm.mjs";
15
15
  /**
16
16
  * All content providers
17
17
  */
18
- export const allInputs = [NPMPackContentProvider, NodeModulesContentProvider, NFTContentProvider];
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 (!modulePath) {
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]);