@sap-ux/deploy-tooling 0.8.0 → 0.9.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/dist/base/deploy.js +14 -21
- package/dist/cli/index.js +3 -5
- package/package.json +1 -1
package/dist/base/deploy.js
CHANGED
|
@@ -227,9 +227,9 @@ function handle401Error(command, provider, config, logger, archive) {
|
|
|
227
227
|
config.target.serviceKey.uaa.password = credentials.password;
|
|
228
228
|
}
|
|
229
229
|
else {
|
|
230
|
-
|
|
230
|
+
config.credentials = credentials;
|
|
231
231
|
}
|
|
232
|
-
yield
|
|
232
|
+
yield runCommand(command, config, logger, archive);
|
|
233
233
|
return true;
|
|
234
234
|
}
|
|
235
235
|
else {
|
|
@@ -289,27 +289,20 @@ function getUi5AbapRepositoryService(provider, config, logger) {
|
|
|
289
289
|
function createTransportRequest(config, logger, provider) {
|
|
290
290
|
var _a;
|
|
291
291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
provider = yield getAbapServiceProvider(config, logger);
|
|
295
|
-
}
|
|
296
|
-
const adtService = yield provider.getAdtService(axios_extension_1.TransportRequestService);
|
|
297
|
-
logger.debug(`ADTService created for application ${config.app.name}, ${!adtService}.`);
|
|
298
|
-
const transportRequest = yield (adtService === null || adtService === void 0 ? void 0 : adtService.createTransportRequest({
|
|
299
|
-
packageName: (_a = config.app.package) !== null && _a !== void 0 ? _a : '',
|
|
300
|
-
ui5AppName: config.app.name,
|
|
301
|
-
description: 'Created by @sap-ux/deploy-tooling'
|
|
302
|
-
}));
|
|
303
|
-
if (transportRequest) {
|
|
304
|
-
logger.info(`Transport request ${transportRequest} created for application ${config.app.name}.`);
|
|
305
|
-
return transportRequest;
|
|
306
|
-
}
|
|
307
|
-
throw new Error(`Transport request could not be created for application ${config.app.name}.`);
|
|
292
|
+
if (!provider) {
|
|
293
|
+
provider = yield getAbapServiceProvider(config, logger);
|
|
308
294
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
295
|
+
const adtService = yield provider.getAdtService(axios_extension_1.TransportRequestService);
|
|
296
|
+
const transportRequest = yield (adtService === null || adtService === void 0 ? void 0 : adtService.createTransportRequest({
|
|
297
|
+
packageName: (_a = config.app.package) !== null && _a !== void 0 ? _a : '',
|
|
298
|
+
ui5AppName: config.app.name,
|
|
299
|
+
description: 'Created by @sap-ux/deploy-tooling'
|
|
300
|
+
}));
|
|
301
|
+
if (transportRequest) {
|
|
302
|
+
logger.info(`Transport request ${transportRequest} created for application ${config.app.name}.`);
|
|
303
|
+
return transportRequest;
|
|
312
304
|
}
|
|
305
|
+
throw new Error(`Transport request could not be created for application ${config.app.name}.`);
|
|
313
306
|
});
|
|
314
307
|
}
|
|
315
308
|
exports.createTransportRequest = createTransportRequest;
|
package/dist/cli/index.js
CHANGED
|
@@ -31,7 +31,7 @@ function createCommand(name) {
|
|
|
31
31
|
.option('--verbose', 'verbose log output', false);
|
|
32
32
|
// options to set (or overwrite) values that are otherwise read from the `ui5*.yaml`
|
|
33
33
|
command
|
|
34
|
-
.addOption(new commander_1.Option('--destination
|
|
34
|
+
.addOption(new commander_1.Option('--destination <destination>', 'Destination in SAP BTP pointing to an ABAP system').conflicts('url'))
|
|
35
35
|
.addOption(new commander_1.Option('--url <target-url>', 'URL of target ABAP system').conflicts('destination'))
|
|
36
36
|
.addOption(new commander_1.Option('--client <sap-client>', 'Client number of target ABAP system').conflicts('destination'))
|
|
37
37
|
.addOption(new commander_1.Option('--cloud', 'Target is an ABAP Cloud system').conflicts('destination'))
|
|
@@ -43,13 +43,11 @@ function createCommand(name) {
|
|
|
43
43
|
.addOption(new commander_1.Option('--create-transport', 'Create transport request during deployment').conflicts(['transport']))
|
|
44
44
|
.addOption(new commander_1.Option('--username <username>', 'ABAP System username').conflicts([
|
|
45
45
|
'cloudServiceKey',
|
|
46
|
-
'cloudServiceEnv'
|
|
47
|
-
'destination'
|
|
46
|
+
'cloudServiceEnv'
|
|
48
47
|
]))
|
|
49
48
|
.addOption(new commander_1.Option('--password <password>', 'ABAP System password').conflicts([
|
|
50
49
|
'cloudServiceKey',
|
|
51
|
-
'cloudServiceEnv'
|
|
52
|
-
'destination'
|
|
50
|
+
'cloudServiceEnv'
|
|
53
51
|
]))
|
|
54
52
|
.option('--name <bsp-name>', 'Project name of the app')
|
|
55
53
|
.option('--no-strict-ssl', 'Deactivate certificate validation', true)
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.9.1",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|