@sap-ux/abap-deploy-config-writer 1.0.6 → 1.0.7
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/config.js +8 -0
- package/package.json +3 -3
package/dist/config.js
CHANGED
|
@@ -9,6 +9,8 @@ import { UI5_TASK_FLATTEN_LIB } from './constants.js';
|
|
|
9
9
|
* @param fs - the memfs editor instance
|
|
10
10
|
*/
|
|
11
11
|
export function updateBaseConfig(isLib, basePath, baseConfig, fs) {
|
|
12
|
+
const before = baseConfig.toString();
|
|
13
|
+
baseConfig.addBuilderResourceExcludes();
|
|
12
14
|
if (isLib) {
|
|
13
15
|
if (!baseConfig.findCustomTask(UI5_TASK_FLATTEN_LIB)) {
|
|
14
16
|
const customTask = {
|
|
@@ -17,7 +19,13 @@ export function updateBaseConfig(isLib, basePath, baseConfig, fs) {
|
|
|
17
19
|
};
|
|
18
20
|
baseConfig.addCustomTasks([customTask]);
|
|
19
21
|
}
|
|
22
|
+
}
|
|
23
|
+
// Only write when content changed to avoid unnecessary file modification
|
|
24
|
+
if (baseConfig.toString() !== before) {
|
|
20
25
|
fs.write(basePath, baseConfig.toString());
|
|
26
|
+
}
|
|
27
|
+
// Remove builder AFTER writing so getDeployConfig receives a clean base without lib-specific tasks
|
|
28
|
+
if (isLib) {
|
|
21
29
|
baseConfig.removeConfig('builder');
|
|
22
30
|
}
|
|
23
31
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
8
8
|
"directory": "packages/abap-deploy-config-writer"
|
|
9
9
|
},
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.7",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"files": [
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"mem-fs": "2.1.0",
|
|
26
26
|
"mem-fs-editor": "9.4.0",
|
|
27
27
|
"semver": "7.7.4",
|
|
28
|
-
"@sap-ux/project-access": "2.1.
|
|
28
|
+
"@sap-ux/project-access": "2.1.2",
|
|
29
29
|
"@sap-ux/system-access": "1.0.2",
|
|
30
|
-
"@sap-ux/ui5-config": "1.0.
|
|
30
|
+
"@sap-ux/ui5-config": "1.0.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/fs-extra": "11.0.4",
|