Skip to content

test(package): guard root package.json against dependency regression#650

Merged
Chemaclass merged 1 commit into
mainfrom
refactor/package-json-structural-guard
May 3, 2026
Merged

test(package): guard root package.json against dependency regression#650
Chemaclass merged 1 commit into
mainfrom
refactor/package-json-structural-guard

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

🤔 Background

Follow-up to #649. The split moved VitePress out of root package.json, but nothing prevents a future contributor from re-adding dependencies, devDependencies, peerDependencies or scripts to the published manifest by accident.

💡 Changes

  • Add structural assertions to tests/unit/package_json_test.sh ensuring the root manifest carries none of the dependency or scripts blocks
  • Document the guard in CHANGELOG Unreleased

Add structural assertions ensuring the published `package.json` keeps no
`dependencies`/`devDependencies`/`peerDependencies`/`scripts` blocks so
the docs split cannot quietly regress.
@Chemaclass Chemaclass added the pure testing Pure testing related label May 3, 2026
@Chemaclass Chemaclass self-assigned this May 3, 2026
@Chemaclass Chemaclass merged commit 35af0bf into main May 3, 2026
30 checks passed
@Chemaclass Chemaclass deleted the refactor/package-json-structural-guard branch May 3, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pure testing Pure testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant