mirror of https://github.com/vuejs/core.git
				
				
				
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			439 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			439 B
		
	
	
	
		
			JavaScript
		
	
	
	
// @ts-check
 | 
						|
import fs from 'node:fs'
 | 
						|
 | 
						|
const packagesToCheck = [
 | 
						|
  'compiler-sfc',
 | 
						|
  'compiler-core',
 | 
						|
  'compiler-dom',
 | 
						|
  'compiler-ssr',
 | 
						|
  'compiler-vapor',
 | 
						|
  '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)
 | 
						|
}
 |