@remotion/zod-types
Version:
Zod types for Remotion
25 lines (19 loc) • 454 B
text/typescript
import {build} from 'bun';
if (process.env.NODE_ENV !== 'production') {
throw new Error('This script must be run using NODE_ENV=production');
}
const output = await build({
entrypoints: ['src/index.ts'],
naming: '[name].mjs',
external: [
'react',
'remotion',
'remotion/no-react',
'react/jsx-runtime',
'zod',
],
});
const [file] = output.outputs;
const text = await file.text();
await Bun.write('dist/esm/index.mjs', text);
export {};