@trayio/cdk-cli 4.12.0 → 4.14.0

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/README.md CHANGED
@@ -19,7 +19,7 @@ $ npm install -g @trayio/cdk-cli
19
19
  $ tray-cdk COMMAND
20
20
  running command...
21
21
  $ tray-cdk (--version|-v)
22
- @trayio/cdk-cli/4.12.0 linux-x64 node-v18.20.2
22
+ @trayio/cdk-cli/4.14.0 linux-x64 node-v18.20.2
23
23
  $ tray-cdk --help [COMMAND]
24
24
  USAGE
25
25
  $ tray-cdk COMMAND
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/commands/connector/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAItC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,OAAO;IACzC,MAAM,CAAC,WAAW,SAAgC;IAElD,MAAM,CAAC,IAAI,KAAM;IAEjB,OAAO,CAAC,gBAAgB,CAA0B;IAE5C,GAAG;CAMT"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/commands/connector/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAKtC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,OAAO;IACzC,MAAM,CAAC,WAAW,SAAgC;IAElD,MAAM,CAAC,IAAI,KAAM;IAEjB,OAAO,CAAC,gBAAgB,CAA0B;IAE5C,GAAG;CAYT"}
@@ -1,10 +1,34 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
29
  const core_1 = require("@oclif/core");
7
30
  const chalk_1 = __importDefault(require("chalk"));
31
+ const E = __importStar(require("fp-ts/Either"));
8
32
  const ConnectorBuilder_1 = require("@trayio/cdk-build/connector/ConnectorBuilder");
9
33
  class Build extends core_1.Command {
10
34
  static description = 'Builds a connector project';
@@ -13,7 +37,10 @@ class Build extends core_1.Command {
13
37
  async run() {
14
38
  const currentDirectory = process.cwd();
15
39
  this.log('Connector Build Started');
16
- await this.connectorBuilder.buildConnector(currentDirectory)();
40
+ const resultE = await this.connectorBuilder.buildConnector(currentDirectory)();
41
+ E.getOrElse((error) => {
42
+ this.log(chalk_1.default.bold(chalk_1.default.bgRed(error.message)));
43
+ })(resultE);
17
44
  this.log(chalk_1.default.bold(chalk_1.default.green(`Connector Build Finished`)));
18
45
  }
19
46
  }
@@ -417,5 +417,5 @@
417
417
  ]
418
418
  }
419
419
  },
420
- "version": "4.12.0"
420
+ "version": "4.14.0"
421
421
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayio/cdk-cli",
3
- "version": "4.12.0",
3
+ "version": "4.14.0",
4
4
  "description": "A CLI for connector development",
5
5
  "exports": {
6
6
  "./*": "./dist/*.js"
@@ -20,12 +20,12 @@
20
20
  "@oclif/plugin-plugins": "^5",
21
21
  "@oclif/plugin-version": "2.0.11",
22
22
  "@oclif/test": "3.1.12",
23
- "@trayio/axios": "4.12.0",
24
- "@trayio/cdk-build": "4.12.0",
25
- "@trayio/commons": "4.12.0",
26
- "@trayio/generator": "4.12.0",
27
- "@trayio/tray-client": "4.12.0",
28
- "@trayio/tray-openapi": "4.12.0",
23
+ "@trayio/axios": "4.14.0",
24
+ "@trayio/cdk-build": "4.14.0",
25
+ "@trayio/commons": "4.14.0",
26
+ "@trayio/generator": "4.14.0",
27
+ "@trayio/tray-client": "4.14.0",
28
+ "@trayio/tray-openapi": "4.14.0",
29
29
  "chalk": "4.1.2",
30
30
  "inquirer": "8.2.6"
31
31
  },