cob-cli 2.37.1 → 2.37.2
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.
|
@@ -247,11 +247,11 @@ async function mergeFiles(block) {
|
|
|
247
247
|
let mergeFileContent = fs.readFileSync(mergeFile).toString();
|
|
248
248
|
// With comments we support JS, CSS, GROOVY
|
|
249
249
|
let startStr = "/* COB-CLI START " + blockMark + " */\n";
|
|
250
|
-
let endStr = "\n/* COB-CLI END " + blockMark + "
|
|
250
|
+
let endStr = "\n/* COB-CLI END " + blockMark + " */";
|
|
251
251
|
|
|
252
252
|
if (prodFileContent.indexOf(startStr) < 0) {
|
|
253
253
|
// If previous customization does not exist
|
|
254
|
-
prodFileContent = startStr + mergeFileContent + endStr + prodFileContent;
|
|
254
|
+
prodFileContent = startStr + mergeFileContent + endStr + "\n" + prodFileContent;
|
|
255
255
|
} else {
|
|
256
256
|
// If previous customization exists
|
|
257
257
|
let beforeMerge = prodFileContent.indexOf(startStr);
|
package/package.json
CHANGED