Skip to content

Conversation

@AaronDewes
Copy link
Contributor

πŸ”— Linked issue

I could not find one, let me know if I should open one.

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Previously, when the user selected a directory that already existed, and was then prompted to choose a different directory, and then selected a different directory, and also chose official modules to add, the official modules would be added to the initial directory, not the newly chosen one.

Previously, when the user selected a directory that already existed, and was then prompted to choose a different directory, and then selected a different directory, and also chose official modules to add, the official modules would be added to the initial directory, not the newly chosen one.
@AaronDewes AaronDewes requested a review from danielroe as a code owner August 8, 2025 08:23
@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 8, 2025

nuxt-cli-playground

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

commit: fc5a4f9

@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@8cbbc93). Learn more about missing BASE report.

Files with missing lines Patch % Lines
packages/nuxi/src/commands/init.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #998   +/-   ##
=======================================
  Coverage        ?   27.30%           
=======================================
  Files           ?       74           
  Lines           ?     3897           
  Branches        ?      214           
=======================================
  Hits            ?     1064           
  Misses          ?     2804           
  Partials        ?       29           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 8, 2025

CodSpeed Performance Report

Merging #998 will not alter performance

Comparing AaronDewes:patch-1 (fc5a4f9) with main (8cbbc93)

Summary

βœ… 2 untouched benchmarks

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 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 5.9 MB β†’ 5.9 MB (-12 B) -0.00%
Changeset
File Ξ” Size
home/runner/work/cli/cli/packages/nuxi/src/commands/init.ts πŸ“‰ -12 B (-0.12%) 9.51 kB β†’ 9.5 kB
View detailed bundle breakdown

Added

Asset File Size % Changed
shared/create-nuxt.C4N2JsP3.mjs 0 B β†’ 2.02 MB (+2.02 MB) -
shared/create-nuxt.CLKQH2fI.mjs 0 B β†’ 1.17 MB (+1.17 MB) -
shared/create-nuxt.DfOMhCSS.mjs 0 B β†’ 964.65 kB (+964.65 kB) -
shared/create-nuxt.DnqEAdX9.mjs 0 B β†’ 108.11 kB (+108.11 kB) -
shared/create-nuxt.BP153W7V.mjs 0 B β†’ 18.91 kB (+18.91 kB) -
shared/create-nuxt.AxzQI3-E.mjs 0 B β†’ 16.04 kB (+16.04 kB) -
shared/create-nuxt._W_UUkuV.mjs 0 B β†’ 4.07 kB (+4.07 kB) -
shared/create-nuxt.D0_3ugfB.mjs 0 B β†’ 4.06 kB (+4.06 kB) -
shared/create-nuxt.Cn5S2HLp.mjs 0 B β†’ 3.9 kB (+3.9 kB) -
shared/create-nuxt.CAd7iHWV.mjs 0 B β†’ 945 B (+945 B) -
shared/create-nuxt.cXyeyPKg.mjs 0 B β†’ 836 B (+836 B) -
shared/create-nuxt.BDbfLsWe.mjs 0 B β†’ 792 B (+792 B) -
shared/create-nuxt.h_RedOiq.mjs 0 B β†’ 294 B (+294 B) -

Removed

Asset File Size % Changed
shared/create-nuxt.itEZ1q1b.mjs 2.02 MB β†’ 0 B (-2.02 MB) -100%
shared/create-nuxt.CaH8T8Q0.mjs 1.17 MB β†’ 0 B (-1.17 MB) -100%
shared/create-nuxt.CSNx6Ocr.mjs 964.66 kB β†’ 0 B (-964.66 kB) -100%
shared/create-nuxt.ub6rT559.mjs 108.11 kB β†’ 0 B (-108.11 kB) -100%
shared/create-nuxt.CFYXatw2.mjs 18.91 kB β†’ 0 B (-18.91 kB) -100%
shared/create-nuxt.-kOLZXKY.mjs 16.04 kB β†’ 0 B (-16.04 kB) -100%
shared/create-nuxt.4lGltqvL.mjs 4.07 kB β†’ 0 B (-4.07 kB) -100%
shared/create-nuxt.CxtSTnVX.mjs 4.06 kB β†’ 0 B (-4.06 kB) -100%
shared/create-nuxt.qWO3MOXA.mjs 3.9 kB β†’ 0 B (-3.9 kB) -100%
shared/create-nuxt.C4s-lJIb.mjs 945 B β†’ 0 B (-945 B) -100%
shared/create-nuxt.CuuxBR2R.mjs 836 B β†’ 0 B (-836 B) -100%
shared/create-nuxt.grUsa0wf.mjs 792 B β†’ 0 B (-792 B) -100%
shared/create-nuxt.BR60yCR0.mjs 294 B β†’ 0 B (-294 B) -100%

Bigger

No assets were bigger

Smaller

No assets were smaller

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.33 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/upgrade.mjs 6.28 kB 0%
chunks/prompt.mjs 42.91 kB 0%
chunks/satisfies.mjs 116 B 0%
chunks/index2.mjs 197.34 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.BSm0_9Hr.mjs 107 B 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 8, 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 5.47 MB β†’ 5.47 MB (-12 B) -0.00%
Changeset
File Ξ” Size
src/commands/init.ts πŸ“‰ -12 B (-0.12%) 9.51 kB β†’ 9.5 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

Asset File Size % Changed
chunks/init.mjs 665.87 kB β†’ 665.86 kB (-12 B) -0.00%

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.33 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/upgrade.mjs 6.28 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 197.34 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.OLusg-ws.mjs 2.57 kB 0%
shared/nuxi.DM113cjP.mjs 916.37 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.CA-668L8.mjs 16.04 kB 0%
shared/nuxi.ChutbOY_.mjs 25.34 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.BEgIcxrx.mjs 4.06 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.CbyJ5osS.mjs 13.45 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%

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 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 94.99 kB β†’ 94.97 kB (-12 B) -0.01%
Changeset
File Ξ” Size
home/runner/work/cli/cli/packages/nuxi/src/commands/init.ts πŸ“‰ -12 B (-0.12%) 9.48 kB β†’ 9.47 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

Asset File Size % Changed
chunks/init.mjs 9.85 kB β†’ 9.84 kB (-12 B) -0.12%

Unchanged

Asset File Size % Changed
dev/index.mjs 0 B 0%
index.mjs 236 B 0%
chunks/index.mjs 14.34 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.2 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/upgrade.mjs 6.28 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.jA1DRKbi.mjs 1.04 kB 0%
shared/cli.DLBhTNQQ.mjs 1.8 kB 0%
shared/cli.IymQnHF9.mjs 5.57 kB 0%

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good find!

@danielroe danielroe changed the title fix(init): Use correct directory for adding modules fix(init): use amended directory when adding modules Aug 8, 2025
@danielroe danielroe merged commit 8f6f9e8 into nuxt:main Aug 8, 2025
14 checks passed
This was referenced Aug 8, 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.

3 participants