shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
72.8k stars 4.43k forks source link

[feat]: add native support for deno 2 as a package manager. #5529

Open mattgi opened 1 day ago

mattgi commented 1 day ago

Feature description

Deno 2 can be used as a drop in replacement for node and all package managers so please add support for Deno 2 in the CLI.

Code within init and add commands test only for pnpm, yarn, npm, and bun so will not currently support deno. There are other issues as well, such as the dependency upon package.json and tsconfig.

React projects can run fine with these constraints so people will slowly start to prefer deno over node, given the increased speed and native support for TypeScript.

see https://docs.deno.com/deploy/tutorials/vite/#step-1%3A-create-a-vite-app for a working example of running React without a package.json or tsconfig file.

Affected component/components

CLI

Before submitting

mattgi commented 1 day ago

current output from running init:

deno run npm:shadcn@latest init ✅ Granted all env access. ✅ Granted all read access. ✅ Granted all sys access. ✔ The path /git/deno/web does not contain a package.json file. Would you like to start a new Next.js project? … no