Skip to content

Conversation

@danielroe
Copy link
Member

@danielroe danielroe commented Aug 9, 2025

📚 Description

saw this reported somewhere (can't recall) - basically, because pkg-types caches the version of a dependency, when we update it will always report the same version as now installed

I've also de-duplicated the getNuxtVersion code which was shared with module utils

related: #996

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2025

Bundle Stats — nuxt-cli size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
32 → 33 97.5 kB → 97.25 kB (-258 B) -0.26%
Changeset
File Δ Size
home/runner/work/cli/cli/packages/nuxi/src/utils/versions.ts 🆕 +351 B 0 B → 351 B
home/runner/work/cli/cli/packages/nuxi/src/commands/upgrade.ts 📉 -271 B (-4.21%) 6.28 kB → 6.01 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/module/_utils.ts 📉 -338 B (-31.74%) 1.04 kB → 727 B
View detailed bundle breakdown

Added

Asset File Size % Changed
shared/cli.Cr-OCgdO.mjs 0 B → 727 B (+727 B) -
shared/cli.DHenkA1C.mjs 0 B → 351 B (+351 B) -

Removed

Asset File Size % Changed
shared/cli.jA1DRKbi.mjs 1.04 kB → 0 B (-1.04 kB) -100%

Bigger

No assets were bigger

Smaller

Asset File Size % Changed
chunks/upgrade.mjs 6.28 kB → 6.01 kB (-271 B) -4.21%

Unchanged

Asset File Size % Changed
dev/index.mjs 0 B 0%
index.mjs 236 B 0%
chunks/index.mjs 14.44 kB 0%
chunks/analyze.mjs 3.35 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/dev-child.mjs 815 B 0%
chunks/dev.mjs 11.31 kB 0%
chunks/devtools.mjs 763 B 0%
chunks/generate.mjs 492 B 0%
chunks/build.mjs 2.04 kB 0%
chunks/info.mjs 4.44 kB 0%
chunks/index2.mjs 273 B 0%
chunks/add.mjs 10.17 kB 0%
chunks/search.mjs 2.96 kB 0%
chunks/prepare.mjs 1.04 kB 0%
chunks/preview.mjs 3.58 kB 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 2.06 kB 0%
chunks/init.mjs 12.15 kB 0%
chunks/add2.mjs 6.89 kB 0%
shared/cli.B9AmABr3.mjs 39 B 0%
shared/cli.Dz2be-Ai.mjs 792 B 0%
shared/cli.BEUGgaW4.mjs 294 B 0%
shared/cli.BSm0_9Hr.mjs 107 B 0%
shared/cli.At9IMXtr.mjs 1.23 kB 0%
shared/cli.pLQ0oPGc.mjs 836 B 0%
shared/cli.qKvs7FJ2.mjs 945 B 0%
shared/cli.D-5JezqI.mjs 78 B 0%
shared/cli.DLBhTNQQ.mjs 1.8 kB 0%
shared/cli.IymQnHF9.mjs 5.57 kB 0%

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2025

Bundle Stats — create-nuxt size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
49 → 50 5.89 MB → 5.89 MB (-258 B) -0.00%
Changeset
File Δ Size
home/runner/work/cli/cli/packages/nuxi/src/utils/versions.ts 🆕 +365 B 0 B → 365 B
home/runner/work/cli/cli/packages/nuxi/src/commands/upgrade.ts 📉 -271 B (-4.21%) 6.28 kB → 6.01 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/module/_utils.ts 📉 -352 B (-32.41%) 1.06 kB → 734 B
View detailed bundle breakdown

Added

Asset File Size % Changed
shared/create-nuxt.RtVqAU5m.mjs 0 B → 3.72 kB (+3.72 kB) -
shared/create-nuxt.BuM2wstx.mjs 0 B → 365 B (+365 B) -

Removed

Asset File Size % Changed
shared/create-nuxt.Ctv7HgDH.mjs 4.06 kB → 0 B (-4.06 kB) -100%

Bigger

No assets were bigger

Smaller

Asset File Size % Changed
chunks/upgrade.mjs 6.28 kB → 6.01 kB (-271 B) -4.21%

Unchanged

Asset File Size % Changed
index.mjs 1.07 kB 0%
chunks/multipart-parser.mjs 5.11 kB 0%
chunks/multipart-parser2.mjs 4.58 kB 0%
chunks/add.mjs 6.89 kB 0%
chunks/analyze.mjs 3.35 kB 0%
chunks/build.mjs 2.04 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/dev-child.mjs 811 B 0%
chunks/dev.mjs 28.45 kB 0%
chunks/devtools.mjs 764 B 0%
chunks/generate.mjs 492 B 0%
chunks/info.mjs 4.43 kB 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 1.04 kB 0%
chunks/preview.mjs 3.58 kB 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 2.06 kB 0%
chunks/prompt.mjs 42.91 kB 0%
chunks/satisfies.mjs 116 B 0%
chunks/index2.mjs 198.56 kB 0%
chunks/jiti.mjs 305 B 0%
chunks/index3.mjs 71.97 kB 0%
chunks/add2.mjs 12.08 kB 0%
chunks/search.mjs 45.85 kB 0%
chunks/xdg-open.mjs 25.32 kB 0%
chunks/node.mjs 145.67 kB 0%
chunks/index4.mjs 1.23 kB 0%
chunks/index5.mjs 5.85 kB 0%
chunks/index6.mjs 6.24 kB 0%
chunks/index7.mjs 50.51 kB 0%
chunks/index8.mjs 904.05 kB 0%
shared/create-nuxt.BjKacOJS.mjs 953.25 kB 0%
shared/create-nuxt.B5etFa0_.mjs 792 B 0%
shared/create-nuxt.i-p7pJoy.mjs 294 B 0%
shared/create-nuxt.CA5-6h3I.mjs 3.9 kB 0%
shared/create-nuxt.BSm0_9Hr.mjs 107 B 0%
shared/create-nuxt.Do3dooQS.mjs 108.11 kB 0%
shared/create-nuxt.BsKntdQB.mjs 18.91 kB 0%
shared/create-nuxt.DVEvgfxa.mjs 1.17 MB 0%
shared/create-nuxt.nZ2QeROu.mjs 4.07 kB 0%
shared/create-nuxt.D6gsH0zX.mjs 836 B 0%
shared/create-nuxt.B19oI1r4.mjs 945 B 0%
shared/create-nuxt.DZ0mjkKC.mjs 18.08 kB 0%
shared/create-nuxt.DGw492ZO.mjs 2.02 MB 0%
shared/create-nuxt.BjhZEm2-.mjs 1.75 kB 0%
shared/create-nuxt.Vk1IrVtB.mjs 26.96 kB 0%
shared/create-nuxt.4t9faemh.mjs 43.64 kB 0%

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2025

Bundle Stats — nuxi size comparison

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
58 → 59 5.46 MB → 5.46 MB (-258 B) -0.00%
Changeset
File Δ Size
src/utils/versions.ts 🆕 +365 B 0 B → 365 B
src/commands/upgrade.ts 📉 -271 B (-4.21%) 6.28 kB → 6.01 kB
src/commands/module/_utils.ts 📉 -352 B (-32.41%) 1.06 kB → 734 B
View detailed bundle breakdown

Added

Asset File Size % Changed
shared/nuxi.Jdh1a7T5.mjs 0 B → 3.72 kB (+3.72 kB) -
shared/nuxi.BcK1uW4h.mjs 0 B → 365 B (+365 B) -

Removed

Asset File Size % Changed
shared/nuxi.uGuG0uDx.mjs 4.06 kB → 0 B (-4.06 kB) -100%

Bigger

No assets were bigger

Smaller

Asset File Size % Changed
chunks/upgrade.mjs 6.28 kB → 6.01 kB (-271 B) -4.21%

Unchanged

Asset File Size % Changed
index.mjs 247 B 0%
dev/index.mjs 925 B 0%
chunks/add.mjs 6.89 kB 0%
chunks/analyze.mjs 3.35 kB 0%
chunks/build.mjs 2.04 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/dev-child.mjs 780 B 0%
chunks/dev.mjs 28.45 kB 0%
chunks/devtools.mjs 764 B 0%
chunks/generate.mjs 492 B 0%
chunks/info.mjs 4.43 kB 0%
chunks/init.mjs 668.18 kB 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 1.04 kB 0%
chunks/preview.mjs 3.58 kB 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 2.06 kB 0%
chunks/satisfies.mjs 116 B 0%
chunks/main.mjs 15.3 kB 0%
chunks/prompt.mjs 42.91 kB 0%
chunks/index2.mjs 198.56 kB 0%
chunks/jiti.mjs 305 B 0%
chunks/index3.mjs 71.97 kB 0%
chunks/multipart-parser.mjs 5.11 kB 0%
chunks/add2.mjs 12.08 kB 0%
chunks/search.mjs 45.85 kB 0%
chunks/xdg-open.mjs 25.32 kB 0%
chunks/node.mjs 145.67 kB 0%
chunks/index4.mjs 1.23 kB 0%
chunks/index5.mjs 5.85 kB 0%
chunks/multipart-parser2.mjs 4.58 kB 0%
chunks/index6.mjs 904.05 kB 0%
shared/nuxi.HaPdOS2b.mjs 19.33 kB 0%
shared/nuxi.DQjfoGl0.mjs 57.22 kB 0%
shared/nuxi.CTyTlDmo.mjs 18.91 kB 0%
shared/nuxi.BXGZ9qFF.mjs 792 B 0%
shared/nuxi.C_u-rG9b.mjs 294 B 0%
shared/nuxi.DUZ_WukQ.mjs 2.57 kB 0%
shared/nuxi.8mhVoXwa.mjs 916.43 kB 0%
shared/nuxi.D2_bzAv0.mjs 1.54 kB 0%
shared/nuxi.DQbQuzNE.mjs 4.07 kB 0%
shared/nuxi.BSm0_9Hr.mjs 107 B 0%
shared/nuxi.CrvQqJcE.mjs 836 B 0%
shared/nuxi.BiWTNJI4.mjs 945 B 0%
shared/nuxi.umkfBzIJ.mjs 18.08 kB 0%
shared/nuxi.CSWGOxQ4.mjs 10.56 kB 0%
shared/nuxi.BAGoDD49.mjs 1.05 kB 0%
shared/nuxi.BoQ074Vk.mjs 2.02 MB 0%
shared/nuxi.BjhZEm2-.mjs 1.75 kB 0%
shared/nuxi.DU9QXUOf.mjs 26.96 kB 0%
shared/nuxi.BzZJv2UC.mjs 123.67 kB 0%
shared/nuxi.QWnQy_ku.mjs 5.75 kB 0%
shared/nuxi.D3mADRf9.mjs 14.73 kB 0%
shared/nuxi.BLb4POFS.mjs 42.47 kB 0%
shared/nuxi.Do0aYBCO.mjs 5.46 kB 0%
shared/nuxi.4t9faemh.mjs 43.64 kB 0%

@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 9, 2025

nuxt-cli-playground

npm i https://pkg.pr.new/create-nuxt@1002
npm i https://pkg.pr.new/nuxi@1002
npm i https://pkg.pr.new/@nuxt/cli@1002

commit: 54d3e47

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 9, 2025

CodSpeed Performance Report

Merging #1002 will not alter performance

Comparing fix/cached-upgrade (54d3e47) with main (5ed6a60)

Summary

✅ 2 untouched benchmarks

@danielroe danielroe merged commit d98e41d into main Aug 9, 2025
14 checks passed
@danielroe danielroe deleted the fix/cached-upgrade branch August 9, 2025 14:48
@github-actions github-actions bot mentioned this pull request Aug 9, 2025
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.

2 participants