nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
67.69k stars 7.63k forks source link

[CLI] Revisit Bun support when creating new NestJS project #13881

Closed ccaspanello closed 3 months ago

ccaspanello commented 3 months ago

Is there an existing issue that is already proposing this?

Is your feature request related to a problem? Please describe it

Previously there was an issue created for this: Provide bun as a package manager in the startup menu when we create a new nest project

At the time this was not possible because Bun did not support the decorators. However, this has been worked on (see https://bun.sh/blog/bun-v1.0.3?ref=nooptoday.com#emitdecoratormetadata-used-by-nest-js-typeorm-and-more) and some people are having success running it with Bun. https://nooptoday.com/how-to-run-nestjs-with-bun/

I would really like to see bun as a first class citizen in the CLI tools, I've been favoring it over npm and yarn

Describe the solution you'd like

Add Bun as an option when running nest new my-project

Teachability, documentation, adoption, migration strategy

Links have been provided above.

What is the motivation / use case for changing the behavior?

Bun is widely used and gaining popularity. It seems reasonable to support it.

micalevisk commented 3 months ago

https://github.com/nestjs/nest-cli/pull/2223