@adinsure-ops/ops-cli 5.4.1-rc3 → 5.4.1-rc5

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.
@@ -32,16 +32,18 @@ export default class CommandBase extends Command {
32
32
  }
33
33
  getYarnVersion() {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
- // corepack writes an informational "about to download" notice to
36
- // stderr when it needs to fetch a yarn version that isn't installed
37
- // yet, even on success, so stderr content alone isn't a failure signal.
38
35
  const output = yield this.childProcess.runCommand(['yarn', '--version']);
39
- const version = output.data.trim();
36
+ // NOTE: When corepack downloads new version of yarn the log is sent to stderr.
37
+ if (output.error && !output.error.includes('Corepack is about to download')) {
38
+ ux.action.stop(`${chalk.red(output.error)}`);
39
+ throw new Error(`Getting yarn version command error: ${output.error}`);
40
+ }
41
+ const version = output.data.split('\n')[0];
40
42
  if (version) {
41
43
  return version;
42
44
  }
43
- ux.action.stop(`${chalk.red(output.error || 'failed getting yarn version')}`);
44
- throw new Error(`Could not resolve yarn version.`);
45
+ ux.action.stop(`${chalk.red('failed getting yarn version')}`);
46
+ throw new Error(`Could not resolve yarn version, from "${output.data}"`);
45
47
  });
46
48
  }
47
49
  yarnIsBerryVersion(version) {
@@ -618,53 +618,6 @@
618
618
  "unset.js"
619
619
  ]
620
620
  },
621
- "docker:update-image-version": {
622
- "aliases": [],
623
- "args": {
624
- "version": {
625
- "description": "Version",
626
- "name": "version",
627
- "required": true
628
- }
629
- },
630
- "description": "update docker image version docker compose file",
631
- "examples": [
632
- "$ ops docker:update-image-version 17.0.0 --service server client"
633
- ],
634
- "flags": {
635
- "services": {
636
- "description": "list of services to update",
637
- "name": "services",
638
- "required": true,
639
- "hasDynamicHelp": false,
640
- "multiple": true,
641
- "type": "option"
642
- },
643
- "file-path": {
644
- "description": "list of services to update",
645
- "name": "file-path",
646
- "default": "./docker-compose.yml",
647
- "hasDynamicHelp": false,
648
- "multiple": false,
649
- "type": "option"
650
- }
651
- },
652
- "hasDynamicHelp": false,
653
- "hiddenAliases": [],
654
- "id": "docker:update-image-version",
655
- "pluginAlias": "@adinsure-ops/ops-cli",
656
- "pluginName": "@adinsure-ops/ops-cli",
657
- "pluginType": "core",
658
- "strict": true,
659
- "usage": "docker:update-image-version <tag>",
660
- "isESM": true,
661
- "relativePath": [
662
- "lib",
663
- "commands",
664
- "docker",
665
- "update-image-version.js"
666
- ]
667
- },
668
621
  "download:client": {
669
622
  "aliases": [
670
623
  "download:client"
@@ -1164,6 +1117,53 @@
1164
1117
  "studio.js"
1165
1118
  ]
1166
1119
  },
1120
+ "docker:update-image-version": {
1121
+ "aliases": [],
1122
+ "args": {
1123
+ "version": {
1124
+ "description": "Version",
1125
+ "name": "version",
1126
+ "required": true
1127
+ }
1128
+ },
1129
+ "description": "update docker image version docker compose file",
1130
+ "examples": [
1131
+ "$ ops docker:update-image-version 17.0.0 --service server client"
1132
+ ],
1133
+ "flags": {
1134
+ "services": {
1135
+ "description": "list of services to update",
1136
+ "name": "services",
1137
+ "required": true,
1138
+ "hasDynamicHelp": false,
1139
+ "multiple": true,
1140
+ "type": "option"
1141
+ },
1142
+ "file-path": {
1143
+ "description": "list of services to update",
1144
+ "name": "file-path",
1145
+ "default": "./docker-compose.yml",
1146
+ "hasDynamicHelp": false,
1147
+ "multiple": false,
1148
+ "type": "option"
1149
+ }
1150
+ },
1151
+ "hasDynamicHelp": false,
1152
+ "hiddenAliases": [],
1153
+ "id": "docker:update-image-version",
1154
+ "pluginAlias": "@adinsure-ops/ops-cli",
1155
+ "pluginName": "@adinsure-ops/ops-cli",
1156
+ "pluginType": "core",
1157
+ "strict": true,
1158
+ "usage": "docker:update-image-version <tag>",
1159
+ "isESM": true,
1160
+ "relativePath": [
1161
+ "lib",
1162
+ "commands",
1163
+ "docker",
1164
+ "update-image-version.js"
1165
+ ]
1166
+ },
1167
1167
  "gitlab:get-tag-pipeline": {
1168
1168
  "aliases": [],
1169
1169
  "args": {
@@ -1859,5 +1859,5 @@
1859
1859
  ]
1860
1860
  }
1861
1861
  },
1862
- "version": "5.4.1-rc3"
1862
+ "version": "5.4.1-rc5"
1863
1863
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adinsure-ops/ops-cli",
3
3
  "description": "Operations CLI for working with AdInsure",
4
- "version": "5.4.1-rc3",
4
+ "version": "5.4.1-rc5",
5
5
  "author": "Adacta Digital Service Department",
6
6
  "bin": {
7
7
  "ops": "./bin/run.js"