Search code examples
yarnpkg

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


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.


Solution

  • 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.