Skip to content

Commit

Permalink
Fixed naming and files path
Browse files Browse the repository at this point in the history
  • Loading branch information
joselrio committed May 9, 2024
1 parent b9b86a4 commit 841b723
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gulp/Tasks/UpdateVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let newVersionToBeSet = '';
let filesList = {
constants: './src/OSFramework/Maps/Constants.ts',
package: './package.json',
readme: './README.md',
specs: './gulp/DefaultSpecs.js',
};

Expand Down Expand Up @@ -54,8 +55,8 @@ function getFilesList(cb) {

switch (filesList[path]) {
case filesList.constants:
findFor = `OSChartsVersion = '${defaultSpecs.info.version}';`;
replaceTo = `OSChartsVersion = '${newVersionToBeSet}';`;
findFor = `OSMapsVersion = '${defaultSpecs.info.version}';`;
replaceTo = `OSMapsVersion = '${newVersionToBeSet}';`;
break;

case filesList.package:
Expand All @@ -69,8 +70,8 @@ function getFilesList(cb) {
break;

case filesList.readme:
findFor = `# OutSystems Charts · v${defaultSpecs.info.version}`;
replaceTo = `# OutSystems Charts · v${newVersionToBeSet}`;
findFor = `# OutSystems Maps · v${defaultSpecs.info.version}`;
replaceTo = `# OutSystems Maps · v${newVersionToBeSet}`;
break;
}

Expand Down

0 comments on commit 841b723

Please sign in to comment.