Node.jsintermediate
Use fs.cp for simple directory copies
import { cp } from "node:fs/promises";
export const copyDirectory = (src: string, dest: string, options: { overwrite?: boolean } = {}) =>
cp(src, dest, {
recursive: true,Copy directories in Node without shelling out to cp.