Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there difference `yarn dev` and `yarn run dev`?

Tags:

yarnpkg

To run the local server for development I normally use yarn run dev.

But it seems yarn dev provides same function. Is this command just a short alias for yarn run dev?

I couldn't find info for yarn dev in documents.

like image 752
ironsand Avatar asked May 18 '26 16:05

ironsand


1 Answers

You can leave out run from this command. Basically, not only dev command, you can directly use any scripts by name without keyword run. So, yarn dev and yarn run dev both do the same.

like image 192
stackguy Avatar answered May 22 '26 10:05

stackguy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!