@docupace/pipeline 1.0.39-matttest.14 → 1.0.39-matttest.16
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/next/util.js +5 -13
package/package.json
CHANGED
package/src/next/util.js
CHANGED
|
@@ -21,23 +21,15 @@ export async function getChangedPackagesInternal(fromRef, toRef) {
|
|
|
21
21
|
const turboDryOutput =
|
|
22
22
|
await $`turbo run build -vvv --filter=${filterArg} --dry=json`;
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
const dryRunJson = turboDryOutput.stdout.trim();
|
|
25
25
|
|
|
26
|
-
const
|
|
26
|
+
const dryRun = JSON.parse(dryRunJson);
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const packageNamesList = dryRun.tasks.map(
|
|
29
|
+
(task) => task.taskId.split('#')[0],
|
|
30
|
+
);
|
|
29
31
|
|
|
30
|
-
console.log('packageName: ', packageNames.stdout.trim());
|
|
31
|
-
|
|
32
|
-
// If we didn't get any package names, return empty array
|
|
33
|
-
if (!packageNames.stdout.trim()) {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// For each package name, get its path
|
|
38
32
|
const packages = [];
|
|
39
|
-
const packageNamesList = packageNames.stdout.trim().split('\n');
|
|
40
|
-
|
|
41
33
|
for (const packageName of packageNamesList) {
|
|
42
34
|
if (packageName) {
|
|
43
35
|
const packagePath =
|