Lint / Lint (Go) (push) Successful in 31s
Lint / Lint (Python) (push) Successful in 9s
Tests / Test (Node/Svelte) (push) Successful in 14s
Tests / Test (Go) (push) Successful in 14s
Tests / Test (Python) (push) Successful in 16s
Lint / Lint (Node/Svelte) (push) Successful in 13s
12 lines
450 B
JavaScript
12 lines
450 B
JavaScript
import { readFile, writeFile } from 'node:fs/promises';
|
|
|
|
const source = await readFile(new URL('../packages/web-ui/dist/styles.css', import.meta.url), 'utf8');
|
|
const tokenImport = "@import '@gabriel20xx/design-tokens/theme.css';";
|
|
const componentStyles = source.replace(`${tokenImport}\n`, '');
|
|
|
|
await writeFile(
|
|
new URL('../shared-styles.css', import.meta.url),
|
|
`@import './packages/design-tokens/theme.css';\n\n${componentStyles}`,
|
|
'utf8'
|
|
);
|