Skip to content

Commit 76ad1bf

Browse files
committed
chore(release): refresh lockfile during prep
1 parent a294eca commit 76ad1bf

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

bun.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/prepare-release.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,29 @@ async function main(): Promise<void> {
734734
log("--", `Would update release package and mobile platform versions to ${version}`);
735735
} else {
736736
const { changed } = updateReleasePackageVersions(version, { rootDir });
737+
if (changed) {
738+
execFileSync(
739+
"bunx",
740+
[
741+
"oxfmt",
742+
...releasePackageFiles,
743+
"apps/mobile/android/app/build.gradle",
744+
"apps/mobile/ios/App/App.xcodeproj/project.pbxproj",
745+
],
746+
{
747+
cwd: rootDir,
748+
stdio: "inherit",
749+
},
750+
);
751+
execFileSync("bun", ["install", "--lockfile-only", "--ignore-scripts"], {
752+
cwd: rootDir,
753+
stdio: "inherit",
754+
});
755+
}
737756
log(
738757
changed ? "OK" : "--",
739758
changed
740-
? `Updated package and mobile version metadata to ${version}`
759+
? `Updated package, mobile version metadata, and lockfile to ${version}`
741760
: `Package and mobile version metadata already matched ${version}`,
742761
);
743762
}
@@ -840,6 +859,7 @@ async function main(): Promise<void> {
840859
...releasePackageFiles,
841860
"apps/mobile/android/app/build.gradle",
842861
"apps/mobile/ios/App/App.xcodeproj/project.pbxproj",
862+
"bun.lock",
843863
],
844864
{
845865
cwd: rootDir,
@@ -886,6 +906,7 @@ async function main(): Promise<void> {
886906
...releasePackageFiles,
887907
"apps/mobile/android/app/build.gradle",
888908
"apps/mobile/ios/App/App.xcodeproj/project.pbxproj",
909+
"bun.lock",
889910
];
890911

891912
log("==>", "Staging release documentation...");

0 commit comments

Comments
 (0)