copy-assets.mjs 418 B

123456789101112
  1. import { copyFile, mkdir } from 'node:fs/promises';
  2. import { dirname, resolve } from 'node:path';
  3. import { fileURLToPath } from 'node:url';
  4. const packageDir = resolve(dirname(fileURLToPath(import.meta.url)), '..');
  5. const stylesDir = resolve(packageDir, 'dist/styles');
  6. await mkdir(stylesDir, { recursive: true });
  7. await copyFile(
  8. resolve(packageDir, 'src/styles/pptxjs.css'),
  9. resolve(stylesDir, 'pptxjs.css')
  10. );