nuxt / cli

⚡️ Nuxt Generation CLI Experience.
https://github.com/nuxt/cli/discussions/3
MIT License
270 stars 65 forks source link

drop legacy `rootDir` arg #450

Open Barbapapazes opened 4 months ago

Barbapapazes commented 4 months ago

Hello 👋,

I was wondering if there were any plans to upgrade to version 4 of the programming interface and take advantage of this major change to remove all the legacy and make the CLI cleaner?

pi0 commented 4 months ago

Nuxi only has peer dependency on kit so if nuxi is used on nuxt v4 projects it will leverage it (including new jiti-esm resolutions) and we will eventually backport jiti v2 to the core of CLI (as non breaking change).

What are legacy things to make cleaner?

Barbapapazes commented 4 months ago

Mainly talking about some args marked as legacy

For example:

https://github.com/nuxt/cli/blob/main/src/commands/build.ts#L30

pi0 commented 4 months ago

Alright, i've renamed issue to track specific drop. If you are thinking of more public interface-breaking changes worth discussing please feel free to open a new issue so we can have them in the plan for v4 when it comes (personally i think just for one arg, it probably doesn't worth to make a major version because it fragments users only). We perhaps make v4 when essentially need to break things for Nuxt 3 users.