13 lines
379 B
JavaScript
13 lines
379 B
JavaScript
|
|
import { cpSync, existsSync, mkdirSync } from "node:fs";
|
||
|
|
import { dirname, resolve } from "node:path";
|
||
|
|
|
||
|
|
const source = resolve("src/styles/tach-typography.css");
|
||
|
|
const destination = resolve("dist/styles.css");
|
||
|
|
|
||
|
|
if (!existsSync(source)) {
|
||
|
|
throw new Error(`Styles file not found: ${source}`);
|
||
|
|
}
|
||
|
|
|
||
|
|
mkdirSync(dirname(destination), { recursive: true });
|
||
|
|
cpSync(source, destination);
|