cob-cli 2.35.2 → 2.36.0

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.
@@ -148,14 +148,14 @@ async function applyCustomizations(customizationRepos) {
148
148
 
149
149
  // Apply specific customization, if actions exist, otherwise use default actions
150
150
  if (customization.actions) {
151
- customization.actions(customizationRepo.name, answers, copyAndMerge);
151
+ await customization.actions(customizationRepo.name, answers, copyAndMerge);
152
152
  } else {
153
153
  // Default actions
154
154
  await copyAndMerge(customizationRepo.name, customizationDir, answers);
155
155
  }
156
156
 
157
157
  // Update customizations.json file
158
- updateCustomizationsVersions(customizationRepo.name, customization.version);
158
+ await updateCustomizationsVersions(customizationRepo.name, customization.version);
159
159
  }
160
160
  }
161
161
 
@@ -247,7 +247,7 @@ 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 + " */\n";
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
@@ -49,6 +49,7 @@ async function _syncFiles(executionType, cmdEnv, from, to, extraOptions = []) {
49
49
  toPath,
50
50
  "-acvi",
51
51
  "--delete",
52
+ "--chmod=Fg+w",
52
53
  "--filter='merge " + path.resolve(__dirname,"rsyncFilter.txt") + "'",
53
54
  cmdEnv.rsyncFilter ? "--filter='merge " + cmdEnv.rsyncFilter + "'" : "",
54
55
  executionType == _syncFiles.COPY ? "-v" : "--dry-run"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.35.2",
3
+ "version": "2.36.0",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {