cngpac preview
Generate a changelog preview from your current changenotes and open it in your default browser. This lets you see what the changelog will look like before actually releasing.
Usage
cngpac preview
How It Works
- Reads all changenotes from
.changenotes/ - Enriches each changenote with git metadata (commit hash, authors)
- Reads
package.jsonfor the package name - Calls the changelog generator plugin to produce markdown
- Converts the markdown to HTML using remark and rehype
- Wraps it in a styled HTML page with a dark theme
- Writes the HTML to a temporary file
- Opens it in your default browser
What It Shows
The preview renders the same changelog content that the version command would generate, including:
- Commit links
- PR references
- Contributor attribution
- Sections grouped by bump type (Major / Minor / Patch)
The version number is shown as x.x.x since no prepare.json exists yet — this is purely a content preview.
Prerequisites
- At least one changenote in
.changenotes/ - A
cngpac.config.tswith a changelog generator configured
Example
cngpac preview
◇ Generating changelog preview...
│ Found 3 changenote(s)
✔ Changelog markdown generated
✔ Saved preview to /tmp/cngpac-changelog-preview.html
◇ Opened changelog preview in browser!
[!TIP] Use
previewto proofread your changenotes before runningprepare. It's a great way to catch typos or missing descriptions.