`yarn dev` 和 `yarn 运行 dev` 有区别吗?

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

到运行开发用的本地服务器我一般用yarn run dev.

但似乎yarn dev提供了相同的功能。这个命令只是 yarn run dev 的简称吗?

我在 documents 中找不到 yarn dev 的信息。

您可以从此命令中省略 运行。 基本上,不仅是 dev 命令,您可以不使用关键字 运行 通过名称直接使用任何脚本。 所以,yarn dev 和 yarn 运行 dev 都做同样的事情。

来自文档:

https://classic.yarnpkg.com/en/docs/cli/run/

It’s also possible to leave out the run in this command, each script can be executed with its name

纱线 2 也有类似的例子

https://yarnpkg.com/cli/run

Same thing, but without the "run" keyword :