DEV Community

Discussion on: Create a react app with bun

Collapse
 
dawosch profile image
Dawosch • Edited

bun is on my „try next“ list. But i don’t understand why all package manager needs this „run“ word.
I want to execute scripts like:

bun dev
bun start
bun build

Collapse
 
ashirbadgudu profile image
Ashirbad Panigrahi

Yes I also want to see this, but for now you can use some certain commands in this way ex:

bun start
Enter fullscreen mode Exit fullscreen mode
Collapse
 
frontendwizard profile image
Juliano Rafael

the reason is to avoid clashes or confusion with the cli commands. if you had bun dev, just by looking at the command you don't know if it's a command from the cli itself or a script from the package.json. with run you know what's a script and what's a cli command.

Collapse
 
ashirbadgudu profile image
Ashirbad Panigrahi

Indeed

Some comments have been hidden by the post's author - find out more