🎥 Make videos programmatically with React
import fs from 'node:fs';
const filesCjs = fs.readdirSync('./dist/cjs');
if (filesCjs.length < 2200) {
console.error('Not publishing, Google fonts have not been generated');
process.exit(1);
}
const filesEsm = fs.readdirSync('./dist/esm');
if (filesEsm.length < 1100) {
console.error('Not publishing, Google fonts have not been generated');
process.exit(1);
}