Skip to content

1.使用单个workspace

使用 -w 参数,可访问指定的单个 workspace

shell
# 安装依赖
npm install vue -w <workspace>

# 执行指令
npm run test -w <workspace>

2.使用workspaces

使用 --workspaces,可访问所有 workspace

shell
npm run test --workspaces