mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-08 21:07:46 +00:00
20 lines
371 B
JavaScript
20 lines
371 B
JavaScript
const execa = require('execa');
|
|
const { remove } = require('fs-extra');
|
|
|
|
async function main() {
|
|
await remove('dist');
|
|
|
|
await execa('tsc', [], { stdio: 'inherit' });
|
|
|
|
await execa(
|
|
'ncc',
|
|
['build', 'src/index.ts', '-e', '@vercel/build-utils', '-o', 'dist'],
|
|
{ stdio: 'inherit' }
|
|
);
|
|
}
|
|
|
|
main().catch(err => {
|
|
console.error(err);
|
|
process.exit(1);
|
|
});
|