chore: Монорепо с общими пакетами
This commit is contained in:
12
packages/tach-typography/scripts/copy-styles.mjs
Normal file
12
packages/tach-typography/scripts/copy-styles.mjs
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user