trm-client 7.1.0 → 7.2.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
@@ -10,49 +10,38 @@
10
10
  | Regesta S.p.A. | [https://www.regestaitalia.eu/](https://www.regestaitalia.eu/) |
11
11
  | Clarex S.r.l. | [https://www.clarex.it/](https://www.clarex.it/) |
12
12
 
13
- This is the official CLI implementation of the core functionalities of TRM.
13
+ [trm-client](https://www.npmjs.com/package/trm-client) is the CLI implementation of the core functionalities of TRM.
14
14
 
15
- TRM is a software designed to make transports between SAP ECC/S4 systems easy.
15
+ **TRM (Transport Request Manager)** is a package manager inspired solution built leveraging CTS that simplifies SAP ABAP transports.
16
16
 
17
- To find out more about TRM, visit its full [documentation](https://docs.trmregistry.com).
17
+ ### Demo publish
18
18
 
19
- # Documentation <!-- {docsify-remove} -->
20
-
21
- Full documentation can be seen at [https://docs.trmregistry.com](https://docs.trmregistry.com).
22
-
23
- <!-- START TABLE_OF_CONTENTS.md -->
24
- - [Setup](/docs/setup.md)
25
- - [Commands](/docs/commands.md)
26
- - [Installing your first package](/docs/examples/install.md)
27
- - [Publishing your first package](/docs/examples/publish.md)
28
- - [Integrate with abapGit & Github Actions](/docs/examples/githubActions.md)
29
- <!-- END TABLE_OF_CONTENTS.md -->
19
+ <p align="center">
20
+   <img src="https://docs.trmregistry.com/_media/publish.gif" />
21
+ </p>
30
22
 
31
- ## Install <!-- {docsify-remove} -->
23
+ ### Demo install
32
24
 
33
- First, make sure you have all the [requirements installed](/docs/setup.md#trm-client-requirements).
25
+ <p align="center">
26
+   <img src="https://docs.trmregistry.com/_media/install.gif" />
27
+ </p>
34
28
 
35
- You can then install the CLI via npm:
29
+ # Documentation
36
30
 
37
- `npm install trm-client -g`
31
+ You can find the full documentation at [docs.trmregistry.com](https://docs.trmregistry.com).
38
32
 
39
- ## Commands <!-- {docsify-remove} -->
40
-
41
- List of all commands is available [here](/docs/commands.md).
33
+ - [Setup](/docs/setup.md)
34
+ - [Publish and install](https://docs.trmregistry.com/#/examples/1_publish_and_install)
42
35
 
43
- ### Demo publish <!-- {docsify-remove} -->
36
+ ## Install
44
37
 
45
- <p align="center">
46
-   <img src="https://docs.trmregistry.com/_media/publish.gif" />
47
- </p>
38
+ First, make sure you have all the [requirements installed](/docs/setup.md).
48
39
 
49
- ### Demo install <!-- {docsify-remove} -->
40
+ You can then install the CLI via npm:
50
41
 
51
- <p align="center">
52
-   <img src="https://docs.trmregistry.com/_media/install.gif" />
53
- </p>
42
+ `npm install trm-client -g`
54
43
 
55
- # Contributing <!-- {docsify-remove} -->
44
+ # Contributing
56
45
 
57
46
  Like every other TRM open-source projects, contributions are always welcomed ❤️.
58
47
 
package/changelog.txt CHANGED
@@ -8,6 +8,16 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
+ 2025-11-10 v7.2.0
12
+ -------------------
13
+ * no arguments fix
14
+ ! trm-core ^8.1.3
15
+
16
+ 2025-11-10 v7.1.1
17
+ -------------------
18
+ + success message on dist-tag and deprecate
19
+ - cli update check on update command
20
+
11
21
  2025-11-10 v7.1.0
12
22
  -------------------
13
23
  * commands with subcommands
@@ -282,13 +282,13 @@ class AbstractCommand {
282
282
  try {
283
283
  sValue = (0, fs_1.readFileSync)(this.args[name]).toString();
284
284
  }
285
- catch (_a) {
285
+ catch (e) {
286
286
  sValue = this.args[name];
287
287
  }
288
288
  try {
289
289
  return JSON.parse(sValue);
290
290
  }
291
- catch (_b) { }
291
+ catch (_a) { }
292
292
  }
293
293
  }
294
294
  parseArrayArg(name) {
@@ -332,7 +332,9 @@ class AbstractCommand {
332
332
  if (process.platform !== 'win32' && process.platform !== 'darwin') {
333
333
  Commons.Logger.warning(`Running on untested OS "${process.platform}"! Some features aren't tested yet.`);
334
334
  }
335
- yield this.getCliVersionStatus();
335
+ if (!this.registerOpts.noClientVersionCheck) {
336
+ yield this.getCliVersionStatus();
337
+ }
336
338
  if (this.registerOpts.requiresRegistry) {
337
339
  var registryAlias;
338
340
  var registry;
@@ -9,4 +9,5 @@ export interface RegisterCommandOpts {
9
9
  noSystemAlias?: boolean;
10
10
  ignoreRegistryUnreachable?: boolean;
11
11
  requiresR3trans?: boolean;
12
+ noClientVersionCheck?: boolean;
12
13
  }
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Deprecate = void 0;
13
+ const trm_commons_1 = require("trm-commons");
13
14
  const AbstractCommand_1 = require("../AbstractCommand");
14
15
  class Deprecate extends AbstractCommand_1.AbstractCommand {
15
16
  init() {
@@ -27,6 +28,7 @@ class Deprecate extends AbstractCommand_1.AbstractCommand {
27
28
  yield this.getRegistry().deprecate(this.args.package, this.args.version, {
28
29
  deprecate_note: this.args.note
29
30
  });
31
+ trm_commons_1.Logger.success(`${this.args.package} v${this.args.version} has just been deprecated`);
30
32
  });
31
33
  }
32
34
  }
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DistTag = void 0;
13
+ const trm_commons_1 = require("trm-commons");
13
14
  const AbstractCommand_1 = require("../AbstractCommand");
14
15
  class DistTag extends AbstractCommand_1.AbstractCommand {
15
16
  init() {
@@ -33,11 +34,13 @@ class DistTag extends AbstractCommand_1.AbstractCommand {
33
34
  version: this.args.version,
34
35
  tag: this.args.tag
35
36
  });
37
+ trm_commons_1.Logger.success(`${this.args.package} v${this.args.version} tagged "${this.args.tag}"`);
36
38
  }
37
39
  else if (this.subcommand === 'rm') {
38
40
  yield this.getRegistry().rmDistTag(this.args.package, {
39
41
  tag: this.args.tag
40
42
  });
43
+ trm_commons_1.Logger.success(`${this.args.package} removed tag "${this.args.tag}"`);
41
44
  }
42
45
  });
43
46
  }
@@ -26,7 +26,7 @@ class FindDependencies extends AbstractCommand_1.AbstractCommand {
26
26
  trm_commons_1.Logger.loading(`Searching for dependencies in package "${this.args.sapPackage}"...`);
27
27
  yield (0, trm_core_1.findDependencies)({
28
28
  contextData: {
29
- noInquirer: this.args.noPrompts
29
+ noInquirer: this.args.prompts
30
30
  },
31
31
  packageData: {
32
32
  package: this.args.sapPackage
@@ -124,7 +124,9 @@ class Install extends AbstractCommand_1.AbstractCommand {
124
124
  }
125
125
  onArgs() {
126
126
  if (this.name === 'update' && !this.args.package) {
127
- this.registerOpts = {};
127
+ this.registerOpts = {
128
+ noClientVersionCheck: true
129
+ };
128
130
  }
129
131
  }
130
132
  onTrmDepVersionNotSatisfied(trmPackage) {
@@ -154,7 +156,7 @@ class Install extends AbstractCommand_1.AbstractCommand {
154
156
  name: utils_1.GlobalContext.getInstance().getSettings().r3transDockerName
155
157
  }
156
158
  },
157
- noInquirer: this.args.noPrompts,
159
+ noInquirer: this.args.prompts,
158
160
  systemPackages: packages,
159
161
  noR3transInfo: false
160
162
  },
@@ -166,15 +168,15 @@ class Install extends AbstractCommand_1.AbstractCommand {
166
168
  },
167
169
  installData: {
168
170
  checks: {
169
- noDependencies: this.args.noDeps,
170
- noObjectTypes: this.args.noObjType,
171
- noSapEntries: this.args.noSapEntries,
172
- noExistingObjects: this.args.noObjCheck,
171
+ noDependencies: this.args.deps,
172
+ noObjectTypes: this.args.objType,
173
+ noSapEntries: this.args.sapEntries,
174
+ noExistingObjects: this.args.objCheck,
173
175
  lockfile: this.args.lockFile ? lockfile_1.Lockfile.fromJson(this.parseJsonArg('lockFile')) : undefined
174
176
  },
175
177
  import: {
176
- noLang: this.args.noLangTr,
177
- noCust: this.args.noCustTr,
178
+ noLang: this.args.langTr,
179
+ noCust: this.args.custTr,
178
180
  timeout: this.parseNumberArg('timeout'),
179
181
  replaceExistingTransports: false
180
182
  },
@@ -182,10 +184,10 @@ class Install extends AbstractCommand_1.AbstractCommand {
182
184
  keepOriginal: false,
183
185
  transportLayer: this.args.transportLayer,
184
186
  replacements: this.parseJsonArg('packageReplacements'),
185
- skipNamespace: this.args.noNamespace
187
+ skipNamespace: this.args.namespace
186
188
  },
187
189
  installTransport: {
188
- create: !!this.args.noInstallTransport,
190
+ create: !!this.args.installTransport,
189
191
  targetSystem: this.args.installTrTarget
190
192
  }
191
193
  }
@@ -69,7 +69,7 @@ class Publish extends AbstractCommand_1.AbstractCommand {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  var registry;
71
71
  if (this.name === 'pack') {
72
- if (!this.args.noPrompts) {
72
+ if (!this.args.prompts) {
73
73
  const pack = yield trm_commons_1.Inquirer.prompt([{
74
74
  name: 'package',
75
75
  type: 'input',
@@ -100,7 +100,7 @@ class Publish extends AbstractCommand_1.AbstractCommand {
100
100
  contextData: {
101
101
  logTemporaryFolder: (0, utils_1.getTempFolder)(),
102
102
  systemPackages: packages,
103
- noInquirer: this.args.noPrompts
103
+ noInquirer: this.args.prompts
104
104
  },
105
105
  packageData: {
106
106
  registry,
@@ -126,10 +126,10 @@ class Publish extends AbstractCommand_1.AbstractCommand {
126
126
  },
127
127
  publishData: {
128
128
  private: this.args.private,
129
- keepLatestReleaseManifestValues: !this.args.noKeepManifest,
130
- noLanguageTransport: this.args.noLangTr,
131
- noDependenciesDetection: this.args.noAutoDeps,
132
- skipCustomizingTransports: this.args.noCustTr,
129
+ keepLatestReleaseManifestValues: !this.args.keepManifest,
130
+ noLanguageTransport: this.args.langTr,
131
+ noDependenciesDetection: this.args.autoDeps,
132
+ skipCustomizingTransports: this.args.custTr,
133
133
  customizingTransports: this.args.cust,
134
134
  readme: this.parseTextArg('readme')
135
135
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-client",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "description": "TRM (Transport Request Manager) Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -49,7 +49,7 @@
49
49
  "npm": "^11.6.0",
50
50
  "semver": "^7.5.4",
51
51
  "trm-commons": "^3.4.2",
52
- "trm-core": "^8.1.2",
52
+ "trm-core": "^8.1.3",
53
53
  "trm-registry-types": "^2.1.0",
54
54
  "xml2js": "^0.6.2"
55
55
  },