bunextupgrade
v0.3.1
Published
CLI tool to upgrade Bunext project to the latest version
Maintainers
Readme
bunextupgrade
CLI to upgrade an existing Bunext project to the latest template. Run from your project root.
Install
bunx bunextupgradeOr install globally:
bun install -g bunextupgradeUsage
From the root of a Bunext project:
bunx bunextupgrade
# or
bunextupgradeRequirements: The directory must be a valid Bunext project (has .git, public/, and src/lib/data/siteData.ts). Otherwise you'll see: "This isn't a valid Bunext project".
What it does: Clones the latest Bunext template, then keeps your:
- Public assets —
android-chrome-192x192.png,android-chrome-512x512.png,site.webmanifest, favicon (any type), and ogImage (any type) - Site data — The
siteDataobject fromsrc/lib/data/siteData.ts(name, baseUrl, ogImage, etc.) - Git history —
.gitis left untouched
Everything else is replaced with the new template.
Options
| Option | Description |
|--------|-------------|
| -h, --help | Show usage |
| -v, --version | Show version |
Develop
bun install
bun run build
node dist/cli.js