@docupace/pipeline 1.0.39-matttest.13 → 1.0.39-matttest.15

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