import { cp, mkdir } from "node:fs/promises"; import path from "node:path"; const rootDir = path.resolve("."); const srcStyle = path.resolve(rootDir, "dist/print-template.css"); const targetDir = path.resolve(rootDir, "dist"); const targetStyle = path.resolve(targetDir, "style.css"); await mkdir(targetDir, { recursive: true }); await cp(srcStyle, targetStyle, { force: true });