@contrail/cli 3.1.2 → 3.1.3

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
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
17
17
  $ contrail COMMAND
18
18
  running command...
19
19
  $ contrail (--version)
20
- @contrail/cli/3.1.2 darwin-arm64 node-v20.18.0
20
+ @contrail/cli/3.1.3 darwin-arm64 node-v20.18.0
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
@@ -100,8 +100,8 @@ class DeployExtension extends basecommand_1.BaseCommand {
100
100
  throw new Error('No extensions defined in app.yml.');
101
101
  }
102
102
  const extensionDecl = extensions.find((ext) => ext.identifier === extensionIdentifier);
103
- const message = `Extension '${extensionIdentifier}' not found in app.yml.`;
104
103
  if (!extensionDecl) {
104
+ const message = `Extension '${extensionIdentifier}' not found in app.yml.`;
105
105
  logger_1.default.info(`${chalk_1.default.red.bold('FAIL')} ${message}`);
106
106
  throw new Error(message);
107
107
  }
@@ -110,8 +110,9 @@ class DeployExtension extends basecommand_1.BaseCommand {
110
110
  getExtensionDirectory(extensionIdentifier) {
111
111
  const extensionDir = path.resolve(process.cwd(), 'extensions', extensionIdentifier);
112
112
  if (!fs.existsSync(extensionDir)) {
113
- logger_1.default.info(`${chalk_1.default.red.bold('FAIL')} ${extensionDir} does not exist.`);
114
- throw new Error(`${extensionDir} does not exist.`);
113
+ const message = `Extension directory '${extensionDir}' does not exist.`;
114
+ logger_1.default.info(`${chalk_1.default.red.bold('FAIL')} ${message}`);
115
+ throw new Error(message);
115
116
  }
116
117
  return extensionDir;
117
118
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.1.2",
2
+ "version": "3.1.3",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",