mirror of
https://github.com/vuejs/core.git
synced 2026-10-28 08:36:21 +08:00
Co-authored-by: 丶远方 <yangpanteng@gmail.com> Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe> Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
28 lines
419 B
JavaScript
28 lines
419 B
JavaScript
// @ts-check
|
|
import fs from 'node:fs'
|
|
|
|
const packagesToCheck = [
|
|
'compiler-sfc',
|
|
'compiler-core',
|
|
'compiler-dom',
|
|
'compiler-ssr',
|
|
'shared',
|
|
]
|
|
|
|
let allFilesPresent = true
|
|
|
|
for (const pkg of packagesToCheck) {
|
|
if (
|
|
!fs.existsSync(
|
|
new URL(`../packages/${pkg}/dist/${pkg}.cjs.js`, import.meta.url),
|
|
)
|
|
) {
|
|
allFilesPresent = false
|
|
break
|
|
}
|
|
}
|
|
|
|
if (!allFilesPresent) {
|
|
process.exit(1)
|
|
}
|