doesitarm/scripts/vercel-build.js
2022-09-04 11:43:05 -05:00

20 lines
496 B
JavaScript

import { execSync } from 'child_process' // The exec import
;(async () => {
// scan-new-apps test-prebuild build-lists-and-api test-postbuild-api
const steps = [
'scan-new-apps',
'test-prebuild',
'build-lists-and-api',
'test-postbuild-api'
]
for ( const stepScriptName of steps ) {
console.log( `Running step: ${ stepScriptName }` )
execSync( `npm run ${ stepScriptName }`, { stdio: 'inherit' } )
}
process.exit()
})()