npm8中文文档
并非所有工作空间都需要实现使用 npm run 命令运行的脚本。
npm run
通过运行带有 --if-present 标志的命令,npm 将忽略缺少目标脚本的工作区。
--if-present
npm run test --workspaces --if-present