trm-client 7.1.1 → 7.2.1

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,15 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
+ 2025-11-16 v7.2.1
12
+ -------------------
13
+ * install transport generation default
14
+
15
+ 2025-11-10 v7.2.0
16
+ -------------------
17
+ * no arguments fix
18
+ ! trm-core ^8.1.3
19
+
11
20
  2025-11-10 v7.1.1
12
21
  -------------------
13
22
  + success message on dist-tag and deprecate
@@ -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) {
@@ -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
@@ -156,7 +156,7 @@ class Install extends AbstractCommand_1.AbstractCommand {
156
156
  name: utils_1.GlobalContext.getInstance().getSettings().r3transDockerName
157
157
  }
158
158
  },
159
- noInquirer: this.args.noPrompts,
159
+ noInquirer: this.args.prompts,
160
160
  systemPackages: packages,
161
161
  noR3transInfo: false
162
162
  },
@@ -168,15 +168,15 @@ class Install extends AbstractCommand_1.AbstractCommand {
168
168
  },
169
169
  installData: {
170
170
  checks: {
171
- noDependencies: this.args.noDeps,
172
- noObjectTypes: this.args.noObjType,
173
- noSapEntries: this.args.noSapEntries,
174
- noExistingObjects: this.args.noObjCheck,
171
+ noDependencies: this.args.deps,
172
+ noObjectTypes: this.args.objType,
173
+ noSapEntries: this.args.sapEntries,
174
+ noExistingObjects: this.args.objCheck,
175
175
  lockfile: this.args.lockFile ? lockfile_1.Lockfile.fromJson(this.parseJsonArg('lockFile')) : undefined
176
176
  },
177
177
  import: {
178
- noLang: this.args.noLangTr,
179
- noCust: this.args.noCustTr,
178
+ noLang: this.args.langTr,
179
+ noCust: this.args.custTr,
180
180
  timeout: this.parseNumberArg('timeout'),
181
181
  replaceExistingTransports: false
182
182
  },
@@ -184,10 +184,10 @@ class Install extends AbstractCommand_1.AbstractCommand {
184
184
  keepOriginal: false,
185
185
  transportLayer: this.args.transportLayer,
186
186
  replacements: this.parseJsonArg('packageReplacements'),
187
- skipNamespace: this.args.noNamespace
187
+ skipNamespace: this.args.namespace
188
188
  },
189
189
  installTransport: {
190
- create: !!this.args.noInstallTransport,
190
+ create: !this.args.installTr,
191
191
  targetSystem: this.args.installTrTarget
192
192
  }
193
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.1",
3
+ "version": "7.2.1",
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
  },