Add Git-installable shared code package
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
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
This commit is contained in:
1 parent
fbbdab49bc
commit
4baa4dccd7
5 files changed
+654
-6
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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'
|
||||
);
|
||||
Reference in new issue
Block a user