@travetto/cli 3.4.0-rc.4 → 3.4.0-rc.5

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.4.0-rc.4",
3
+ "version": "3.4.0-rc.5",
4
4
  "description": "CLI infrastructure for Travetto framework",
5
5
  "keywords": [
6
6
  "cli",
@@ -29,7 +29,7 @@
29
29
  "directory": "module/cli"
30
30
  },
31
31
  "dependencies": {
32
- "@travetto/schema": "^3.4.0-rc.3",
32
+ "@travetto/schema": "^3.4.0-rc.4",
33
33
  "@travetto/terminal": "^3.4.0-rc.0"
34
34
  },
35
35
  "travetto": {
package/src/util.ts CHANGED
@@ -70,7 +70,7 @@ export class CliUtil {
70
70
  args: process.argv.slice(3),
71
71
  env
72
72
  }
73
- }
73
+ };
74
74
 
75
75
  console.log('Triggering IPC request', req);
76
76
 
@@ -1,6 +1,6 @@
1
1
  import ts from 'typescript';
2
2
 
3
- import { TransformerState, DecoratorMeta, DecoratorUtil, AfterClass } from '@travetto/transformer';
3
+ import { TransformerState, DecoratorMeta, AfterClass } from '@travetto/transformer';
4
4
  import { SchemaTransformUtil } from '@travetto/schema/support/transform-util';
5
5
 
6
6
  /**
@@ -29,22 +29,6 @@ export class CliCommandTransformer {
29
29
  return node;
30
30
  }
31
31
 
32
- const declArgs = [...dec.expression.arguments];
33
-
34
- // Name only, need a config object
35
- if (declArgs.length === 0) {
36
- declArgs.push(state.fromLiteral({}));
37
- }
38
-
39
- // Compute new declaration
40
- const newDec = state.factory.createDecorator(
41
- state.factory.createCallExpression(
42
- dec.expression.expression,
43
- dec.expression.typeArguments,
44
- [...declArgs]
45
- )
46
- );
47
-
48
32
  const members = node.members.map(x => ts.isMethodDeclaration(x) && x === runMethod ?
49
33
  state.factory.updateMethodDeclaration(
50
34
  x,
@@ -59,7 +43,7 @@ export class CliCommandTransformer {
59
43
  ) : x);
60
44
 
61
45
  return state.factory.updateClassDeclaration(node,
62
- DecoratorUtil.spliceDecorators(node, dec, [newDec]),
46
+ node.modifiers,
63
47
  node.name,
64
48
  node.typeParameters,
65
49
  node.heritageClauses,