@sap-ux/cf-deploy-config-writer 0.1.28 → 0.1.29
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/utils.d.ts +2 -0
- package/dist/utils.js +5 -3
- package/package.json +1 -1
package/dist/utils.d.ts
CHANGED
|
@@ -117,6 +117,8 @@ export declare function setMtaDefaults(config: CFBaseConfig): void;
|
|
|
117
117
|
/**
|
|
118
118
|
* Update the root package.json with scripts to deploy the MTA.
|
|
119
119
|
*
|
|
120
|
+
* Note: The fs editor is not passed to `addPackageDevDependency` since the package.json could be updated by other third party tools.
|
|
121
|
+
*
|
|
120
122
|
* @param {object} Options Input params
|
|
121
123
|
* @param {string} Options.mtaId - MTA ID to be written to package.json
|
|
122
124
|
* @param {string} Options.rootPath - MTA project path
|
package/dist/utils.js
CHANGED
|
@@ -255,6 +255,8 @@ function setMtaDefaults(config) {
|
|
|
255
255
|
/**
|
|
256
256
|
* Update the root package.json with scripts to deploy the MTA.
|
|
257
257
|
*
|
|
258
|
+
* Note: The fs editor is not passed to `addPackageDevDependency` since the package.json could be updated by other third party tools.
|
|
259
|
+
*
|
|
258
260
|
* @param {object} Options Input params
|
|
259
261
|
* @param {string} Options.mtaId - MTA ID to be written to package.json
|
|
260
262
|
* @param {string} Options.rootPath - MTA project path
|
|
@@ -264,8 +266,8 @@ async function updateRootPackage({ mtaId, rootPath }, fs) {
|
|
|
264
266
|
const packageExists = fs.exists((0, path_1.join)(rootPath, project_access_1.FileName.Package));
|
|
265
267
|
// Append mta scripts only if mta.yaml is at a different level to the HTML5 app
|
|
266
268
|
if (packageExists) {
|
|
267
|
-
await (0, project_access_1.addPackageDevDependency)(rootPath, constants_1.Rimraf, constants_1.RimrafVersion
|
|
268
|
-
await (0, project_access_1.addPackageDevDependency)(rootPath, constants_1.MbtPackage, constants_1.MbtPackageVersion
|
|
269
|
+
await (0, project_access_1.addPackageDevDependency)(rootPath, constants_1.Rimraf, constants_1.RimrafVersion);
|
|
270
|
+
await (0, project_access_1.addPackageDevDependency)(rootPath, constants_1.MbtPackage, constants_1.MbtPackageVersion);
|
|
269
271
|
let deployArgs = [];
|
|
270
272
|
if (fs.exists((0, path_1.join)(rootPath, constants_1.MTAFileExtension))) {
|
|
271
273
|
deployArgs = ['-e', constants_1.MTAFileExtension];
|
|
@@ -275,7 +277,7 @@ async function updateRootPackage({ mtaId, rootPath }, fs) {
|
|
|
275
277
|
{ name: 'build', run: `${constants_1.MTABuildScript} --mtar archive` },
|
|
276
278
|
{ name: 'deploy', run: (0, constants_1.rootDeployMTAScript)(deployArgs) }
|
|
277
279
|
]) {
|
|
278
|
-
await (0, project_access_1.updatePackageScript)(rootPath, script.name, script.run
|
|
280
|
+
await (0, project_access_1.updatePackageScript)(rootPath, script.name, script.run);
|
|
279
281
|
}
|
|
280
282
|
}
|
|
281
283
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/cf-deploy-config-writer",
|
|
3
3
|
"description": "Add or amend Cloud Foundry and ABAP deployment configuration for SAP projects",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.29",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|