忽略丢失的脚本

中英双语

并非所有工作空间都需要实现使用 npm run 命令运行的脚本。

通过运行带有 --if-present 标志的命令,npm 将忽略缺少目标脚本的工作区。

npm run test --workspaces --if-present