// src/lib/copyAssetFiles.ts
import { copyFileSync, mkdirSync } from "node:fs";
import path from "node:path/posix";
import { globSync } from "glob";
var ASSET_PATTERNS = [
  "**/*.jpg",
  "**/*.png",
  "**/*.gif",
  "**/*.svg",
  "**/*.webp",
  "**/*.sass",
  "**/*.scss",
  "**/*.css"
];
function copyAssetFiles(srcDir, destDir) {
  const matches = globSync(ASSET_PATTERNS, { cwd: srcDir, nodir: true });
  const copied = [];
  for (const relativePath of matches) {
    const from = path.join(srcDir, relativePath);
    const to = path.join(destDir, relativePath);
    mkdirSync(path.dirname(to), { recursive: true });
    copyFileSync(from, to);
    copied.push(to);
  }
  return copied;
}
export {
  ASSET_PATTERNS,
  copyAssetFiles
};
//# sourceMappingURL=copyAssetFiles.mjs.map
