Skip to content

Commit 366d113

Browse files
authored
Merge branch 'main' into global-variable-fix
2 parents b781570 + 3bc5694 commit 366d113

File tree

3 files changed

+6
-23
lines changed

3 files changed

+6
-23
lines changed

cirrus.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test = "sf apex test run --test-level RunLocalTests --wait 20"
1010
docs = "apexdocs markdown"
1111
generate-library-docs = "node scripts/generate-library-docs.mjs"
1212
prep-package = "node scripts/prepare-for-packaging.mjs"
13-
package = "sf package version create -x -c -p 0HoHu000000TNMAKA4 -w 60"
13+
package = "cirrus package -p Expression -t minor -x -c --promote -w 60"
1414
post-package = "node scripts/post-packaging.mjs"
1515

1616
[flow.start-dev]

scripts/prepare-for-packaging.mjs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,6 @@ if (fs.existsSync(projectJsonPath)) {
1515

1616
const projectJsonPackagingPath = path.resolve(projectJsonPackaging);
1717
if (fs.existsSync(projectJsonPackagingPath)) {
18-
const data = fs.readFileSync(projectJsonPackagingPath, 'utf8');
19-
const json = JSON.parse(data);
20-
21-
const corePackage = json.packageDirectories.find((pkg) => pkg.package === 'Expression');
22-
23-
// Update versionName
24-
const versionNameParts = corePackage.versionName.split(' ');
25-
const versionNumber = parseFloat(versionNameParts[1]);
26-
corePackage.versionName = `${versionNameParts[0]} ${versionNumber + 0.01}`;
27-
28-
// Update versionNumber
29-
const versionNumberParts = corePackage.versionNumber.split('.');
30-
const majorVersion = parseInt(versionNumberParts[0]);
31-
const minorVersion = parseInt(versionNumberParts[1]);
32-
corePackage.versionNumber = `${majorVersion}.${minorVersion + 1}.0.NEXT`;
33-
34-
// Save the updated file
35-
fs.writeFileSync(projectJsonPackagingPath, JSON.stringify(json, null, 2), 'utf8');
36-
console.log(`Updated ${projectJsonPackaging}`);
37-
3818
fs.renameSync(projectJsonPackagingPath, projectJsonPath);
3919
console.log(`Renamed ${projectJsonPackaging} to ${projectJson}`);
4020
}

sfdx-project_packaging.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"path": "expression-src",
55
"package": "Expression",
66
"versionName": "Version 1.36",
7-
"versionNumber": "1.36.0.NEXT",
7+
"versionNumber": "1.39.0.NEXT",
88
"default": false,
99
"versionDescription": "Expression core language",
1010
"ancestorVersion": "HIGHEST"
@@ -65,6 +65,9 @@
6565
"Expression@1.33.0-1": "04tRb0000037T8PIAU",
6666
"Expression@1.34.0-3": "04tRb000003L5m9IAC",
6767
"Expression@1.35.0-4": "04tRb000003N27RIAS",
68-
"Expression@1.36.0-1": "04tRb000003NrEnIAK"
68+
"Expression@1.36.0-1": "04tRb000003NrEnIAK",
69+
"Expression@1.37.0-3": "04tRb000003OmWPIA0",
70+
"Expression@1.38.0-1": "04tRb000003R4nNIAS",
71+
"Expression@1.39.0-1": "04tRb000003R51tIAC"
6972
}
7073
}

0 commit comments

Comments
 (0)