hereby 1.3.0 → 1.3.1

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.
@@ -15,13 +15,13 @@ export function formatTasks(tasks, defaultTask) {
15
15
  if (task.options.description) {
16
16
  descriptionParts.push(task.options.description);
17
17
  }
18
- if (task.options.dependencies && task.options.dependencies.length > 0) {
19
- const deps = task.options.dependencies
20
- .filter((task) => !task.options.hiddenFromTaskList)
18
+ const deps = task.options.dependencies?.filter((task) => !task.options.hiddenFromTaskList);
19
+ if (deps && deps.length > 0) {
20
+ const depNames = deps
21
21
  .map((task) => task.options.name)
22
22
  .sort(stringSorter)
23
23
  .map((v) => chalk.blue(v));
24
- descriptionParts.push(`Depends on: ${deps.join(", ")}`);
24
+ descriptionParts.push(`Depends on: ${depNames.join(", ")}`);
25
25
  }
26
26
  return { name, description: descriptionParts.join("\n") };
27
27
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hereby",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "A simple task runner",
5
5
  "repository": "github:jakebailey/hereby",
6
6
  "type": "module",