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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "10.12.3",
3
+ "version": "10.13.2",
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
@@ -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 (!modulePath) {
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]);
package/src/package.mjs CHANGED
@@ -137,6 +137,7 @@ const skipPattern = [
137
137
  ".nycrc",
138
138
  "**.DS_Store",
139
139
  ".env",
140
+ "**.vcxproj.filters",
140
141
  "**lerna.json",
141
142
  "x-package.json5",
142
143
  "component.json",