@listr2/manager 3.0.2 → 3.0.4

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/index.cjs CHANGED
@@ -21,7 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
 
23
23
  //#endregion
24
- const listr2 = __toESM(require("listr2"));
24
+ let listr2 = require("listr2");
25
+ listr2 = __toESM(listr2);
25
26
 
26
27
  //#region src/manager.ts
27
28
  /**
@@ -53,8 +54,7 @@ var Manager = class {
53
54
  };
54
55
  const tasks = [...this.tasks];
55
56
  this.tasks = [];
56
- const ctx = await this.run(tasks, options);
57
- return ctx;
57
+ return await this.run(tasks, options);
58
58
  }
59
59
  newListr(tasks, options) {
60
60
  return new listr2.Listr(tasks, options);
package/dist/index.js CHANGED
@@ -30,8 +30,7 @@ var Manager = class {
30
30
  };
31
31
  const tasks = [...this.tasks];
32
32
  this.tasks = [];
33
- const ctx = await this.run(tasks, options);
34
- return ctx;
33
+ return await this.run(tasks, options);
35
34
  }
36
35
  newListr(tasks, options) {
37
36
  return new Listr(tasks, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@listr2/manager",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "Extension for Listr2 to easily create sane defaults for task lists.",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/listr2/listr2",
@@ -71,9 +71,9 @@
71
71
  ],
72
72
  "dependencies": {},
73
73
  "devDependencies": {
74
- "listr2": "9.0.2"
74
+ "listr2": "9.0.4"
75
75
  },
76
76
  "peerDependencies": {
77
- "listr2": "9.0.2"
77
+ "listr2": "9.0.4"
78
78
  }
79
79
  }