Skip to content

fix(dev): move clear argument default to command definition#1054

Merged
danielroe merged 2 commits intomainfrom
fix/dev-clear-arg-default
Sep 27, 2025
Merged

fix(dev): move clear argument default to command definition#1054
danielroe merged 2 commits intomainfrom
fix/dev-clear-arg-default

Conversation

@BobbieGoede
Copy link
Member

@BobbieGoede BobbieGoede commented Sep 27, 2025

🔗 Linked issue

❓ 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

The default of the clear argument is effectively false (since !!undefined === false) but this default is hidden to the user. I also removed the negative description since it's kind of redundant.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 27, 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 4.5 MB → 4.5 MB (-43 B) -0.00%
Changeset
File Δ Size
src/dev/index.ts 📉 -2 B (-0.05%) 3.92 kB → 3.92 kB
src/commands/dev.ts 📉 -41 B (-0.35%) 11.33 kB → 11.29 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/dev.mjs 938.2 kB → 938.16 kB (-41 B) -0.00%
chunks/index2.mjs 199.56 kB → 199.56 kB (-2 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.07 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/dev-child.mjs 780 B 0%
chunks/devtools.mjs 764 B 0%
chunks/generate.mjs 492 B 0%
chunks/info.mjs 4.43 kB 0%
chunks/init.mjs 676.48 kB 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 1.05 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.65 kB 0%
chunks/satisfies.mjs 116 B 0%
chunks/main.mjs 15.3 kB 0%
chunks/prompt.mjs 42.91 kB 0%
chunks/jiti.mjs 498 B 0%
chunks/index3.mjs 71.97 kB 0%
chunks/multipart-parser.mjs 5.11 kB 0%
chunks/add2.mjs 12.1 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.86 kB 0%
chunks/index6.mjs 904.13 kB 0%
chunks/multipart-parser2.mjs 4.58 kB 0%
shared/nuxi.Bv-FePcy.mjs 19.81 kB 0%
shared/nuxi.DQjfoGl0.mjs 57.22 kB 0%
shared/nuxi.CTyTlDmo.mjs 18.91 kB 0%
shared/nuxi.C-cP1f7p.mjs 1.71 kB 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.BVftAOL6.mjs 18.11 kB 0%
shared/nuxi.DkoVccfL.mjs 10.64 kB 0%
shared/nuxi.CrvQqJcE.mjs 836 B 0%
shared/nuxi.BiWTNJI4.mjs 945 B 0%
shared/nuxi.BAGoDD49.mjs 1.05 kB 0%
shared/nuxi.D6tXIntv.mjs 158.51 kB 0%
shared/nuxi.BjhZEm2-.mjs 1.75 kB 0%
shared/nuxi.Gg4oZG1J.mjs 128.29 kB 0%
shared/nuxi.QWnQy_ku.mjs 5.75 kB 0%
shared/nuxi.DlMb1OKt.mjs 365 B 0%
shared/nuxi.DU9QXUOf.mjs 26.96 kB 0%
shared/nuxi.8uLzFmy0.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%

@github-actions
Copy link
Contributor

github-actions bot commented Sep 27, 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
7 2.13 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
index.mjs 1.09 kB 0%
chunks/multipart-parser.mjs 5.11 kB 0%
chunks/multipart-parser2.mjs 4.58 kB 0%
chunks/prompt.mjs 42.91 kB 0%
chunks/index.mjs 904.13 kB 0%
chunks/satisfies.mjs 116 B 0%
shared/create-nuxt.BZoiezHJ.mjs 1.19 MB 0%

@github-actions
Copy link
Contributor

github-actions bot commented Sep 27, 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
31 103.33 kB → 103.29 kB (-43 B) -0.04%
Changeset
File Δ Size
home/runner/work/cli/cli/packages/nuxi/src/dev/index.ts 📉 -2 B (-0.05%) 3.89 kB → 3.89 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/dev.ts 📉 -41 B (-0.35%) 11.29 kB → 11.25 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/dev.mjs 15.86 kB → 15.82 kB (-41 B) -0.25%
chunks/index.mjs 14.49 kB → 14.49 kB (-2 B) -0.01%

Unchanged

Asset File Size % Changed
dev/index.mjs 0 B 0%
index.mjs 236 B 0%
chunks/analyze.mjs 3.35 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/dev-child.mjs 815 B 0%
chunks/devtools.mjs 763 B 0%
chunks/generate.mjs 492 B 0%
chunks/build.mjs 2.07 kB 0%
chunks/index2.mjs 308 B 0%
chunks/add.mjs 11.25 kB 0%
chunks/search.mjs 2.96 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.65 kB 0%
chunks/prepare.mjs 1.05 kB 0%
chunks/info.mjs 4.46 kB 0%
chunks/init.mjs 12.75 kB 0%
chunks/add2.mjs 6.89 kB 0%
shared/cli.B9AmABr3.mjs 39 B 0%
shared/cli.CehBW0fN.mjs 1.71 kB 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.Cr-OCgdO.mjs 727 B 0%
shared/cli.DHenkA1C.mjs 351 B 0%
shared/cli.DVoN1ieL.mjs 5.57 kB 0%

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 27, 2025

nuxt-cli-playground

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

commit: 5ee80ba

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 27, 2025

CodSpeed Performance Report

Merging #1054 will not alter performance

Comparing fix/dev-clear-arg-default (5ee80ba) with main (9752a5b)

Summary

✅ 2 untouched

@BobbieGoede BobbieGoede changed the title fix: move clear argument default to command definition fix(dev): move clear argument default to command definition Sep 27, 2025
@danielroe danielroe merged commit 9a9c2eb into main Sep 27, 2025
15 checks passed
@danielroe danielroe deleted the fix/dev-clear-arg-default branch September 27, 2025 14:18
@github-actions github-actions bot mentioned this pull request Sep 27, 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