@travetto/cli 3.0.0-rc.19 → 3.0.0-rc.20

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 +4 -4
  2. package/src/execute.ts +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/cli",
3
- "version": "3.0.0-rc.19",
3
+ "version": "3.0.0-rc.20",
4
4
  "description": "CLI infrastructure for travetto framework",
5
5
  "keywords": [
6
6
  "cli",
@@ -24,9 +24,9 @@
24
24
  "directory": "module/cli"
25
25
  },
26
26
  "dependencies": {
27
- "@travetto/base": "^3.0.0-rc.16",
28
- "@travetto/terminal": "^3.0.0-rc.9",
29
- "@travetto/worker": "^3.0.0-rc.16",
27
+ "@travetto/base": "^3.0.0-rc.17",
28
+ "@travetto/terminal": "^3.0.0-rc.10",
29
+ "@travetto/worker": "^3.0.0-rc.17",
30
30
  "commander": "^10.0.0"
31
31
  },
32
32
  "travetto": {
package/src/execute.ts CHANGED
@@ -70,13 +70,17 @@ export class ExecutionManager {
70
70
  * @param args
71
71
  */
72
72
  static async run(argv: string[]): Promise<void> {
73
- const { init } = await import('@travetto/base/support/init.js');
74
- await init();
73
+ await GlobalTerminal.init();
75
74
 
76
- const width = GlobalTerminal.width;
77
75
  commander
78
76
  .version(PackageUtil.getFrameworkVersion())
79
- .configureOutput({ getOutHelpWidth: () => width, getErrHelpWidth: () => width });
77
+ .configureOutput({
78
+ getOutHelpWidth: () => GlobalTerminal.width,
79
+ getErrHelpWidth: () => GlobalTerminal.width
80
+ });
81
+
82
+ const { init } = await import('@travetto/base/support/init.js');
83
+ await init();
80
84
 
81
85
  const [, , cmd, ...args] = argv;
82
86
  if (cmd === 'main') {