Skip to content

refactor(release): include docs/package.json in RELEASE_FILES#652

Merged
Chemaclass merged 1 commit into
mainfrom
refactor/release-include-docs-package-json
May 3, 2026
Merged

refactor(release): include docs/package.json in RELEASE_FILES#652
Chemaclass merged 1 commit into
mainfrom
refactor/release-include-docs-package-json

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

🤔 Background

After #649 the docs package.json exists alongside the root one, but release.sh referenced it inline (two git add ... docs/package.json duplications) while leaving it out of the RELEASE_FILES array. That meant backup/rollback never covered it, and adding it naïvely would have collided with the root file because the backup helper flattened paths.

💡 Changes

  • Promote docs/package.json to a first-class RELEASE_FILES entry so preflight, backup, rollback and commit-staging all handle it uniformly
  • Drop the two inline git add ... docs/package.json duplications
  • Update release::backup::save_file and release::rollback::restore_files to preserve nested directory structure
  • New tests covering subdirectory backup + nested-path rollback

Promote `docs/package.json` to a first-class member of `RELEASE_FILES`
so backup/rollback covers it and the inline `git add ... docs/package.json`
duplication disappears. Backup/restore now preserves nested directory
paths so files like `docs/package.json` and root `package.json` no
longer collide.
@Chemaclass Chemaclass added the refactoring Refactoring or cleaning related label May 3, 2026
@Chemaclass Chemaclass self-assigned this May 3, 2026
@Chemaclass Chemaclass merged commit 70deb64 into main May 3, 2026
30 checks passed
@Chemaclass Chemaclass deleted the refactor/release-include-docs-package-json branch May 3, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Refactoring or cleaning related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant