Skip to content

refactor(cli)!: move CLI to standalone package - #657

Open
harlan-zw wants to merge 1 commit into
mainfrom
feat/split-cli-package
Open

refactor(cli)!: move CLI to standalone package#657
harlan-zw wants to merge 1 commit into
mainfrom
feat/split-cli-package

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

None

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

Moves the nuxt-og-image binary and command tests into the new nuxt-og-image-cli workspace package. The root package no longer ships CLI output or @clack/prompts; its unpacked tarball is about 100 KB smaller.

Install or run commands with npx nuxt-og-image-cli. Installed projects still expose the nuxt-og-image executable.

⚠️ Breaking Changes

nuxt-og-image no longer includes the CLI binary.

📝 Migration

Replace npx nuxt-og-image <command> with npx nuxt-og-image-cli <command>.

@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nuxt-og-image@657

commit: f09b38f

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

📦 Package Size

🟢 2 size metrics smaller · 🆕 10 new metrics tracked

Package output Gzipped Δ
nuxt-og-image · dependency @clack/prompts 12 kB → — 🟢 removed
nuxt-og-image · export ./cli-support — → 272 B 🆕 new
nuxt-og-image · published payload 235 kB → 211 kB 🟢 -24 kB (-10.3%)
nuxt-og-image-cli · dependency @clack/prompts — → 12 kB 🆕 new
nuxt-og-image-cli · dependency @nuxt/kit — → 30 kB 🆕 new
nuxt-og-image-cli · dependency magicast — → 72 kB 🆕 new
nuxt-og-image-cli · dependency nypm — → 8.6 kB 🆕 new
nuxt-og-image-cli · dependency oxc-walker — → 7.6 kB 🆕 new
nuxt-og-image-cli · dependency pathe — → 12 kB 🆕 new
nuxt-og-image-cli · dependency tinyexec — → 4.1 kB 🆕 new
nuxt-og-image-cli · dependency ultrahtml — → 32 kB 🆕 new
nuxt-og-image-cli · published payload — → 12 kB 🆕 new
All tracked output (28)
Package output Gzipped Raw
nuxt-og-image · dependency @clack/prompts 12 kB 50 kB 🟢
nuxt-og-image · dependency @vue/compiler-sfc 572 kB 2.61 MB
nuxt-og-image · dependency chrome-launcher 21 kB 69 kB
nuxt-og-image · dependency lightningcss 1.4 kB 3.6 kB
nuxt-og-image · dependency magicast 72 kB 355 kB
nuxt-og-image · dependency mocked-exports 1.3 kB 2.6 kB
nuxt-og-image · dependency nuxt-site-config 9.8 kB 24 kB
nuxt-og-image · dependency nuxtseo-shared 16 kB 51 kB
nuxt-og-image · dependency oxc-parser 130 kB 1.35 MB
nuxt-og-image · dependency radix3 4.3 kB 16 kB
nuxt-og-image · dependency strip-literal 711 B 2.3 kB
nuxt-og-image · dependency tinyexec 4.1 kB 13 kB
nuxt-og-image · export . 372 B 900 B
nuxt-og-image · export ./cli-support 272 B 451 B 🆕
nuxt-og-image · export ./content 324 B 607 B
nuxt-og-image · published payload 211 kB 751 kB 🟢
nuxt-og-image · app runtime 8.5 kB 26 kB
nuxt-og-image · server runtime 64 kB 177 kB
nuxt-og-image · shared runtime 3.0 kB 9.6 kB
nuxt-og-image-cli · dependency @clack/prompts 12 kB 50 kB 🆕
nuxt-og-image-cli · dependency @nuxt/kit 30 kB 115 kB 🆕
nuxt-og-image-cli · dependency magicast 72 kB 355 kB 🆕
nuxt-og-image-cli · dependency nypm 8.6 kB 36 kB 🆕
nuxt-og-image-cli · dependency oxc-walker 7.6 kB 31 kB 🆕
nuxt-og-image-cli · dependency pathe 12 kB 33 kB 🆕
nuxt-og-image-cli · dependency tinyexec 4.1 kB 13 kB 🆕
nuxt-og-image-cli · dependency ultrahtml 32 kB 128 kB 🆕
nuxt-og-image-cli · published payload 12 kB 49 kB 🆕
Runtime dependencies (37)
Package Dependency Requested Resolved Cost
nuxt-og-image @nuxt/kit ^4.5.1 4.5.1 ♻️ free via Nuxt 4.5.1
nuxt-og-image @vue/compiler-sfc ^3.5.40 3.5.40 📦 572 kB gzip
nuxt-og-image chrome-launcher ^1.2.1 1.2.1 📦 21 kB gzip
nuxt-og-image consola ^3.4.2 3.4.2 ♻️ free via Nuxt 4.5.1
nuxt-og-image defu ^6.1.7 6.1.7 ♻️ free via Nuxt 4.5.1
nuxt-og-image devalue ^5.9.0 5.9.0 ♻️ free via Nuxt 4.5.1
nuxt-og-image exsolve ^1.1.1 1.1.1 ♻️ free via Nuxt 4.5.1
nuxt-og-image fnv1a-64 ^0.1.2 0.1.2 ♻️ free via Nuxt 4.5.1
nuxt-og-image lightningcss ^1.33.0 1.33.0 📦 1.4 kB gzip
nuxt-og-image magic-string ^1.1.0 1.1.0 ♻️ free via Nuxt 4.5.1
nuxt-og-image magicast ^0.5.4 0.5.4 📦 72 kB gzip
nuxt-og-image mocked-exports ^0.1.1 0.1.1 📦 1.3 kB gzip
nuxt-og-image nuxt-site-config ^4.1.4 4.1.4 📦 9.8 kB gzip
nuxt-og-image nuxtseo-shared ^5.3.9 5.3.9 📦 16 kB gzip
nuxt-og-image nypm ^0.6.9 0.6.9 ♻️ free via Nuxt 4.5.1
nuxt-og-image object-identity ^0.2.3 0.2.3 ♻️ free via Nuxt 4.5.1
nuxt-og-image ofetch ^1.5.1 1.5.1 ♻️ free via Nuxt 4.5.1
nuxt-og-image ohash ^2.0.11 2.0.11 ♻️ free via Nuxt 4.5.1
nuxt-og-image oxc-parser ^0.142.0 0.142.0 📦 130 kB gzip
nuxt-og-image oxc-walker ^1.1.1 1.1.1 ♻️ free via Nuxt 4.5.1
nuxt-og-image pathe ^2.0.3 2.0.3 ♻️ free via Nuxt 4.5.1
nuxt-og-image pkg-types ^2.3.1 2.3.1 ♻️ free via Nuxt 4.5.1
nuxt-og-image radix3 ^1.1.2 1.1.2 📦 4.3 kB gzip
nuxt-og-image std-env ^4.2.0 4.2.0 ♻️ free via Nuxt 4.5.1
nuxt-og-image strip-literal ^4.0.0 4.0.0 📦 711 B gzip
nuxt-og-image tinyexec ^1.3.0 1.3.0 📦 4.1 kB gzip
nuxt-og-image ufo ^1.6.4 1.6.4 ♻️ free via Nuxt 4.5.1
nuxt-og-image ultrahtml ^1.7.0 1.7.0 ♻️ free via Nuxt 4.5.1
nuxt-og-image unplugin ^3.3.0 3.3.0 ♻️ free via Nuxt 4.5.1
nuxt-og-image-cli @clack/prompts ^1.7.0 1.7.0 📦 12 kB gzip
nuxt-og-image-cli @nuxt/kit ^4.5.1 4.5.1 📦 30 kB gzip
nuxt-og-image-cli magicast ^0.5.4 0.5.4 📦 72 kB gzip
nuxt-og-image-cli nypm ^0.6.9 0.6.9 📦 8.6 kB gzip
nuxt-og-image-cli oxc-walker ^1.1.1 1.1.1 📦 7.6 kB gzip
nuxt-og-image-cli pathe ^2.0.3 2.0.3 📦 12 kB gzip
nuxt-og-image-cli tinyexec ^1.3.0 1.3.0 📦 4.1 kB gzip
nuxt-og-image-cli ultrahtml ^1.7.0 1.7.0 📦 32 kB gzip

Baseline: main_@_2f9c7c1d___2026-08-04 · gzip is the comparison metric · changes below 16 B gzip are ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant