@travetto/cli 3.1.0-rc.9 → 3.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/cli",
3
- "version": "3.1.0-rc.9",
3
+ "version": "3.1.1",
4
4
  "description": "CLI infrastructure for Travetto framework",
5
5
  "keywords": [
6
6
  "cli",
@@ -24,8 +24,8 @@
24
24
  "directory": "module/cli"
25
25
  },
26
26
  "dependencies": {
27
- "@travetto/schema": "^3.1.0-rc.6",
28
- "@travetto/terminal": "^3.1.0-rc.1"
27
+ "@travetto/schema": "^3.1.1",
28
+ "@travetto/terminal": "^3.1.0"
29
29
  },
30
30
  "travetto": {
31
31
  "displayName": "Command Line Interface"
package/src/execute.ts CHANGED
@@ -7,7 +7,6 @@ import { ConsoleManager, defineGlobalEnv, ShutdownManager } from '@travetto/base
7
7
  import { HelpUtil } from './help';
8
8
  import { CliCommandShape, CliValidationResultError } from './types';
9
9
  import { CliCommandRegistry } from './registry';
10
- import { cliTpl } from './color';
11
10
  import { CliCommandSchemaUtil } from './schema';
12
11
 
13
12
  /**
@@ -116,7 +115,7 @@ export class ExecutionManager {
116
115
  console.error(await HelpUtil.renderValidationError(command, err));
117
116
  console.error!(await HelpUtil.renderHelp(command));
118
117
  } else {
119
- console.error!(cliTpl`${{ failure: err.message }}`);
118
+ console.error!(err);
120
119
  console.error!();
121
120
  }
122
121
  }
package/src/scm.ts CHANGED
@@ -47,7 +47,7 @@ export class CliScmUtil {
47
47
  */
48
48
  static async findChangedModulesSince(hash: string): Promise<IndexedModule[]> {
49
49
  const ws = RootIndex.manifest.workspacePath;
50
- const res = await ExecUtil.spawn('git', ['diff', '--name-only', `HEAD..${hash}`, ':!**/DOC.tsx', ':!**/DOC.html', ':!**/README.md'], { cwd: ws }).result;
50
+ const res = await ExecUtil.spawn('git', ['diff', '--name-only', `HEAD..${hash}`, ':!**/DOC.*', ':!**/README.*'], { cwd: ws }).result;
51
51
  const out = new Set<IndexedModule>();
52
52
  for (const line of res.stdout.split(/\n/g)) {
53
53
  const mod = RootIndex.getFromSource(path.resolve(ws, line));
@@ -4,7 +4,7 @@ async function entry(): Promise<void> {
4
4
  const { init, cleanup } = await import('@travetto/base/support/init.js');
5
5
  await init();
6
6
  try {
7
- const { ExecutionManager } = await import('@travetto/cli/src/execute');
7
+ const { ExecutionManager } = await import('@travetto/cli/src/execute.js');
8
8
  await ExecutionManager.run(process.argv);
9
9
  } finally {
10
10
  await cleanup();