cli icon indicating copy to clipboard operation
cli copied to clipboard

drop legacy `rootDir` arg

Open Barbapapazes opened this issue 1 year ago • 3 comments
trafficstars

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?

Barbapapazes avatar Jul 08 '24 04:07 Barbapapazes

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?

pi0 avatar Jul 08 '24 06:07 pi0

Mainly talking about some args marked as legacy

For example:

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

Barbapapazes avatar Jul 08 '24 07:07 Barbapapazes

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.

pi0 avatar Jul 08 '24 08:07 pi0