@deot/dev-builder 2.8.1 → 2.8.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/dist/index.cjs +6 -4
- package/dist/index.js +6 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -352,11 +352,11 @@ const run = (options) => devShared.Utils.autoCatch(async () => {
|
|
|
352
352
|
if (locals.workspace && packageFolderName === "*") {
|
|
353
353
|
inputs = locals.normalizePackageFolderNames;
|
|
354
354
|
} else {
|
|
355
|
-
inputs =
|
|
355
|
+
inputs = packageFolderName.split(",");
|
|
356
356
|
}
|
|
357
|
-
if (options.packageName && options.packageName !== "*") {
|
|
357
|
+
if (locals.workspace && options.packageName && options.packageName !== "*") {
|
|
358
358
|
let relations = [];
|
|
359
|
-
const walk = (packageNames) => {
|
|
359
|
+
const walk = (packageNames = []) => {
|
|
360
360
|
relations = packageNames.concat(relations);
|
|
361
361
|
packageNames.forEach((i) => {
|
|
362
362
|
if (locals.packageRelation[i].length) {
|
|
@@ -364,7 +364,9 @@ const run = (options) => devShared.Utils.autoCatch(async () => {
|
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
366
|
};
|
|
367
|
-
|
|
367
|
+
options.packageName.split(",").forEach((packageName$) => {
|
|
368
|
+
walk(locals.packageRelation[packageName$]);
|
|
369
|
+
});
|
|
368
370
|
relations = relations.filter((i, index, source) => source.indexOf(i) === index).map((i) => devShared.Locals.getPackageFolderName(i)).filter((i) => {
|
|
369
371
|
try {
|
|
370
372
|
return options.dryRun || !fs__namespace.existsSync(path__namespace.resolve(locals.packageDir, i, "dist"));
|
package/dist/index.js
CHANGED
|
@@ -326,11 +326,11 @@ const run = (options) => Utils.autoCatch(async () => {
|
|
|
326
326
|
if (locals.workspace && packageFolderName === "*") {
|
|
327
327
|
inputs = locals.normalizePackageFolderNames;
|
|
328
328
|
} else {
|
|
329
|
-
inputs =
|
|
329
|
+
inputs = packageFolderName.split(",");
|
|
330
330
|
}
|
|
331
|
-
if (options.packageName && options.packageName !== "*") {
|
|
331
|
+
if (locals.workspace && options.packageName && options.packageName !== "*") {
|
|
332
332
|
let relations = [];
|
|
333
|
-
const walk = (packageNames) => {
|
|
333
|
+
const walk = (packageNames = []) => {
|
|
334
334
|
relations = packageNames.concat(relations);
|
|
335
335
|
packageNames.forEach((i) => {
|
|
336
336
|
if (locals.packageRelation[i].length) {
|
|
@@ -338,7 +338,9 @@ const run = (options) => Utils.autoCatch(async () => {
|
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
340
|
};
|
|
341
|
-
|
|
341
|
+
options.packageName.split(",").forEach((packageName$) => {
|
|
342
|
+
walk(locals.packageRelation[packageName$]);
|
|
343
|
+
});
|
|
342
344
|
relations = relations.filter((i, index, source) => source.indexOf(i) === index).map((i) => Locals.getPackageFolderName(i)).filter((i) => {
|
|
343
345
|
try {
|
|
344
346
|
return options.dryRun || !fs.existsSync(path.resolve(locals.packageDir, i, "dist"));
|