@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/next/util.js +5 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.39-matttest.14",
3
+ "version": "1.0.39-matttest.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
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
- console.log('after turbo', turboDryOutput);
24
+ const dryRunJson = turboDryOutput.stdout.trim();
25
25
 
26
- const packageNames = await $`${turboDryOutput}`;
26
+ const dryRun = JSON.parse(dryRunJson);
27
27
 
28
- console.log('after turbo');
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 =