Files
bfe6b459d3 style: update format & lint config (#9162)
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>
2023-12-26 19:39:47 +08:00

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)
}