@devicecloud.dev/dcd 1.0.1 → 1.0.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/plan.js CHANGED
@@ -39,9 +39,10 @@ async function plan(input, includeTags, excludeTags, excludeFlows) {
39
39
  unfilteredFlowFiles = unfilteredFlowFiles.filter((file) => !file.startsWith(path.resolve(flow)));
40
40
  }
41
41
  }
42
- const configFilePath = unfilteredFlowFiles.find((file) => file.endsWith('config.yaml') || file.endsWith('config.yml'));
43
- if (configFilePath)
44
- unfilteredFlowFiles = unfilteredFlowFiles.filter((file) => file !== configFilePath);
42
+ // if config file present at top level, use it
43
+ const configFilePath = unfilteredFlowFiles.find((file) => file === input + 'config.yaml' || file === input + 'config.yml');
44
+ // remove all config files from the list to prevent processing them
45
+ unfilteredFlowFiles = unfilteredFlowFiles.filter((file) => !(file.endsWith('config.yaml') || file.endsWith('config.yml')));
45
46
  const cleanPath = path.normalize(input);
46
47
  const relativeFilePaths = unfilteredFlowFiles.map((file) => file.replace(cleanPath, ''));
47
48
  const topLevelFlowFiles = relativeFilePaths.filter((file) => !file.includes('/'));
@@ -228,5 +228,5 @@
228
228
  ]
229
229
  }
230
230
  },
231
- "version": "1.0.1"
231
+ "version": "1.0.2"
232
232
  }
package/package.json CHANGED
@@ -73,7 +73,7 @@
73
73
  "test": "mocha --forbid-only \"test/**/*.test.ts\"",
74
74
  "version": "oclif readme && git add README.md"
75
75
  },
76
- "version": "1.0.1",
76
+ "version": "1.0.2",
77
77
  "bugs": {
78
78
  "url": "https://discord.gg/gm3mJwcNw8"
79
79
  },
@@ -86,4 +86,4 @@
86
86
  "testing"
87
87
  ],
88
88
  "types": "dist/index.d.ts"
89
- }
89
+ }