import { writeFile } from 'node:fs/promises';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';

const currentDir = dirname(fileURLToPath(import.meta.url));
const targetFile = resolve(currentDir, 'page-builder-tailwind-classes.js');
const output = `// Generated placeholder for page-builder Tailwind classes.
// The builder rewrites this file with the classes currently present in the canvas.
export const pageBuilderTailwindClasses = "";
`;

await writeFile(targetFile, output);
console.log(`Wrote empty Tailwind class placeholder to ${targetFile}`);
