Skip to content

Conversation

@DamianGlowala
Copy link
Member

@DamianGlowala DamianGlowala commented Jan 8, 2025

πŸ”— Linked issue

resolves #336

❓ 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

This warns the user about already existing directory when initializing a project and allows for either proceeding (overriding contents), selecting different directory, or aborting.

@DamianGlowala DamianGlowala self-assigned this Jan 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2025

Bundle Stats

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
54 5.67 MB β†’ 5.67 MB (+1.02 kB) +0.02%
Changeset
File Ξ” Size
src/commands/init.ts πŸ“ˆ +1.02 kB (+25.33%) 4.02 kB β†’ 5.04 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
chunks/init.mjs 804.28 kB β†’ 805.3 kB (+1.02 kB) +0.13%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
index.mjs 188 B 0%
chunks/prompt.mjs 46.07 kB 0%
chunks/add.mjs 6.83 kB 0%
chunks/analyze.mjs 3.18 kB 0%
chunks/build.mjs 1.97 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/dev-child.mjs 1.75 kB 0%
chunks/dev.mjs 9.58 kB 0%
chunks/devtools.mjs 736 B 0%
chunks/generate.mjs 388 B 0%
chunks/info.mjs 4.39 kB 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 984 B 0%
chunks/preview.mjs 2.81 kB 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 1.58 kB 0%
chunks/upgrade.mjs 5.69 kB 0%
chunks/satisfies.mjs 116 B 0%
chunks/main.mjs 15.34 kB 0%
chunks/index2.mjs 909.09 kB 0%
chunks/dev2.mjs 68.95 kB 0%
chunks/index3.mjs 17.11 kB 0%
chunks/xdg-open.mjs 25.32 kB 0%
chunks/node.mjs 134.34 kB 0%
chunks/index4.mjs 1.24 kB 0%
chunks/index5.mjs 6.55 kB 0%
chunks/index6.mjs 70.29 kB 0%
chunks/multipart-parser.mjs 5.11 kB 0%
chunks/add2.mjs 10.6 kB 0%
chunks/search.mjs 42.99 kB 0%
chunks/index7.mjs 5.87 kB 0%
chunks/index8.mjs 882.9 kB 0%
chunks/multipart-parser2.mjs 4.58 kB 0%
shared/nuxi.DkyhQQf1.mjs 78.65 kB 0%
shared/nuxi.VuLgwPtj.mjs 804 B 0%
shared/nuxi.DY-sU5CF.mjs 294 B 0%
shared/nuxi.DdI-vRyV.mjs 1.54 kB 0%
shared/nuxi.BSm0_9Hr.mjs 107 B 0%
shared/nuxi.jHNMu6i2.mjs 1.34 kB 0%
shared/nuxi.D1V6iren.mjs 20.07 kB 0%
shared/nuxi.CtYpQNJa.mjs 17.69 kB 0%
shared/nuxi.0ShblKVI.mjs 1.11 kB 0%
shared/nuxi.BgpyaHY1.mjs 14.64 kB 0%
shared/nuxi.u_uB65ir.mjs 8.04 kB 0%
shared/nuxi.SEuYCQjN.mjs 2.02 MB 0%
shared/nuxi.BHLUJ6h2.mjs 5.12 kB 0%
shared/nuxi.E-ZsRS8r.mjs 943 B 0%
shared/nuxi.BgENdoyd.mjs 1.76 kB 0%
shared/nuxi.C2bb3PPD.mjs 152.13 kB 0%
shared/nuxi.DfYkt6zx.mjs 285.08 kB 0%
shared/nuxi.ChFrgAY-.mjs 5.71 kB 0%
shared/nuxi.BZI8rqcO.mjs 6.13 kB 0%
shared/nuxi.BPuj-7ta.mjs 42.89 kB 0%

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 8, 2025

Open in Stackblitz β€’ nuxt-cli-playground

npm i https://pkg.pr.new/nuxi@652

commit: 8ce87d1

@danielroe danielroe merged commit 03a5635 into main Jan 9, 2025
9 checks passed
@danielroe danielroe deleted the feat/dir-already-exists-warn-on-init branch January 9, 2025 14:45
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.

prompt to override existing directory in nuxi init

3 participants