Skip to content

Commit 1b43380

Browse files
committed
scripts: sync manifest.minAppVersion from obsidian dependency
1 parent da02baf commit 1b43380

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/src/release.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ function updateVersionFiles(version: string): void {
171171
packageJson.version = version;
172172
writeFileSync(packagePath, `${JSON.stringify(packageJson, null, 2)}\n`);
173173

174+
// Update manifest.minAppVersion with the obsidian version from plugin/package.json
175+
const obsidianVersion = packageJson.dependencies?.obsidian;
176+
if (obsidianVersion) {
177+
manifest.minAppVersion = obsidianVersion;
178+
writeFileSync(manifestPath, `${JSON.stringify(manifest, null, 2)}\n`);
179+
}
180+
174181
// Update versions.json
175182
const versionsPath = join(REPO_ROOT, "versions.json");
176183
const versions = JSON.parse(readFileSync(versionsPath, "utf-8"));

0 commit comments

Comments
 (0)