fix(oc-dev): use imported existsSync for the legacy changelog check

Claude-Session: https://claude.ai/code/session_013rV6NKKjFb6pDB2Zh7TtsH
This commit is contained in:
Bohdan Triapitsyn
2026-09-05 19:10:29 +03:00
parent 2bdd9af90a
commit 29480383cc
+1 -1
View File
@@ -177,7 +177,7 @@ function step(label, fn) {
// The release notes source plus the files generated from it; all go into the release commit. // The release notes source plus the files generated from it; all go into the release commit.
// CHANGELOG.md is legacy (older installs read it for update notes); it is // CHANGELOG.md is legacy (older installs read it for update notes); it is
// refreshed only while it exists. // refreshed only while it exists.
const RELEASE_CHANGELOG_FILES = ['changelog', 'packages/vscode/CHANGELOG.md', ...(fs.existsSync('CHANGELOG.md') ? ['CHANGELOG.md'] : [])]; const RELEASE_CHANGELOG_FILES = ['changelog', 'packages/vscode/CHANGELOG.md', ...(existsSync(path.join(repoRoot, 'CHANGELOG.md')) ? ['CHANGELOG.md'] : [])];
function printReleaseNextSteps(version) { function printReleaseNextSteps(version) {
log.success(`Release v${version} prepared locally`); log.success(`Release v${version} prepared locally`);