Files
wukuang/packages/print-webapp/scripts/copy-sdk-style.mjs
T

11 lines
382 B
JavaScript
Raw Normal View History

2026-05-23 14:05:22 +08:00
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 });