npm-pkgbuild 11.1.3 → 11.1.4

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": "11.1.3",
3
+ "version": "11.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -111,7 +111,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
111
111
  const fragments = {};
112
112
  let root, parent;
113
113
 
114
- await packageWalker(async (packageContent, base, modulePath) => {
114
+ await packageWalker(async (packageContent, dir, modulePath) => {
115
115
  let i = 0;
116
116
  for (const pkgbuild of Array.isArray(packageContent.pkgbuild)
117
117
  ? packageContent.pkgbuild
@@ -156,8 +156,10 @@ export async function* extractFromPackage(options = {}, env = {}) {
156
156
  continue;
157
157
  }
158
158
  }
159
+ else {
160
+ console.log(`${name}: load`);
161
+ }
159
162
 
160
- console.log(`${name}: load`);
161
163
  const fragment = {
162
164
  name,
163
165
  priority,
@@ -185,7 +187,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
185
187
 
186
188
  for (const k of ["hooks"]) {
187
189
  if (pkgbuild[k]) {
188
- pkgbuild[k] = resolve(base, pkgbuild[k]);
190
+ pkgbuild[k] = resolve(dir, pkgbuild[k]);
189
191
  }
190
192
  }
191
193
 
@@ -238,8 +240,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
238
240
  }
239
241
 
240
242
  fragment.properties = Object.assign(properties, pkgbuild);
241
- fragment.dir = join(base, ...modulePath.map(p => `node_modules/${p}`));
242
-
243
+ fragment.dir = dir;
243
244
  fragments[fragment.name] = fragment;
244
245
 
245
246
  if (pkgbuild.variant) {
@@ -304,7 +305,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
304
305
  "RESULT",
305
306
  result.variant,
306
307
  result.properties,
307
- sources,
308
+ sources.map(s =>s.toString()).join('\n'),
308
309
  output,
309
310
  arch
310
311
  );