@karaoke-cms/assert-privacy
v0.18.1
Published
Post-build privacy gate for karaoke-cms
Readme
@karaoke-cms/assert-privacy
Post-build privacy gate for karaoke-cms. Scans the built dist/ directory and fails if any unpublished vault content has leaked into the output.
Usage
Runs automatically as a CI step after astro build:
# .github/workflows/deploy.yml
- run: npm run build
- run: node scripts/assert-privacy.js distOr manually:
node scripts/assert-privacy.js distWhat it does
Walks every .html file in the build output and checks:
- No content from unpublished vault entries (those without
publish: true) appears in any page - The RSS feed at
dist/rss.xmlis well-formed XML - No handbook content leaked into production HTML
Exits with code 1 and a clear error message if a violation is found, blocking the deploy.
Status
Stub — the package placeholder is installed by scaffolded projects. The implementation lives at scripts/assert-privacy.js in your project directory.
What's new in 0.9.5
No user-facing changes in this release — version bumped for lockstep with the monorepo.
