diff --git a/package.json b/package.json index ce3f330..d5814cf 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "clone-readme": "cp ./README.md README-temp.md", "scan-new-apps": "npx vite-node scripts/scan-new-apps.js", "cloudflare-deploy": "npm run build-api", - "build-for-vercel": "run-s scan-new-apps test-prebuild build-lists-and-api test-postbuild-api", + "vercel-build": "npx vite-node scripts/vercel-build.js", "netlify-build": "run-s test-prebuild-functions download-sitemaps stork-index generate-astro test-postbuild-functions test-circular-deps" }, "dependencies": { diff --git a/scripts/vercel-build.js b/scripts/vercel-build.js new file mode 100644 index 0000000..107fcbf --- /dev/null +++ b/scripts/vercel-build.js @@ -0,0 +1,20 @@ +const { execSync } = require('child_process') + +;(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() +})()