_scripts/generate-blocks-catalog.mjsimport puppeteer from 'puppeteer'import {readdir,readFile,writeFile,mkdir,unlink,access,} from 'fs/promises'import { join, dirname, relative } from 'path'import { fileURLToPath } from 'url'import sharp from 'sharp'import { exec } from 'child_process'import { promisify } from 'util'import { config } from 'dotenv'// Load environment variables from .env.localconfig({ path: join(dirname(fileURLToPath(import.meta.url)), '../.env.local') })const execAsync = promisify(exec)
Showing the first 20 lines.
Get full code