安装
yarn add npm-run-all -D
使用
run-p(并行执行)
"scripts": {
"build": "run-p type-check build-only",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit --skipLibCheck",
}
</script>
run-s(顺序执行)
"scripts": {
"build": "run-s type-check build-only",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit --skipLibCheck",
}
</script>