npm-pkgbuild 11.5.13 → 11.5.14
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 +2 -7
- package/src/util.mjs +1 -1
package/package.json
CHANGED
|
@@ -114,11 +114,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
114
114
|
|
|
115
115
|
await packageWalker(async (packageContent, dir, modulePath) => {
|
|
116
116
|
let i = 0;
|
|
117
|
-
for (const pkgbuild of
|
|
118
|
-
? packageContent.pkgbuild
|
|
119
|
-
: packageContent.pkgbuild
|
|
120
|
-
? [packageContent.pkgbuild]
|
|
121
|
-
: []) {
|
|
117
|
+
for (const pkgbuild of asArray(packageContent.pkgbuild)) {
|
|
122
118
|
if (modulePath.length > 0 && !pkgbuild.variant) {
|
|
123
119
|
continue;
|
|
124
120
|
}
|
|
@@ -320,8 +316,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
320
316
|
sources.map(s => s.toString()).join("\n"),
|
|
321
317
|
output,
|
|
322
318
|
arch
|
|
323
|
-
)
|
|
324
|
-
*/
|
|
319
|
+
);*/
|
|
325
320
|
|
|
326
321
|
if (arch.size === 0) {
|
|
327
322
|
yield result;
|