@db-ui/components
Advanced tools
Comparing version 0.7.1 to 0.7.2-shell-c96667f
@@ -5,2 +5,8 @@ import { exec } from 'node:child_process'; | ||
import { dirname } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename).replaceAll('\\', '/'); | ||
const execAsync = promisify(exec); | ||
@@ -19,3 +25,3 @@ | ||
try { | ||
const files = await glob('**/*.ttf'); | ||
const files = await glob(`${__dirname}/*.ttf`); | ||
const commands = files.map((file) => | ||
@@ -27,3 +33,3 @@ [ | ||
'--flavor=woff2', | ||
'--unicodes-file=unicode-eu.txt', | ||
`--unicodes-file=${__dirname}/unicode-eu.txt`, | ||
`--output-file=${file.replace('.ttf', '-EU.woff2')}` | ||
@@ -30,0 +36,0 @@ ].join(' ') |
@@ -20,5 +20,5 @@ # Generate fonts | ||
```shell | ||
node packages/foundations/assets/fonts/generate-eu-fonts.ts | ||
tsx packages/foundations/assets/fonts/generate-eu-fonts.ts | ||
``` | ||
To check if everything works fine you can check all glyphs with an [opentype.js.org glyph inspector tool](https://opentype.js.org/glyph-inspector.html). |
{ | ||
"name": "@db-ui/components", | ||
"version": "0.7.1", | ||
"version": "0.7.2-shell-c96667f", | ||
"description": "", | ||
@@ -47,8 +47,8 @@ "repository": { | ||
"dependencies": { | ||
"@db-ui/foundations": "0.7.1" | ||
"@db-ui/foundations": "0.7.2-shell-c96667f" | ||
}, | ||
"devDependencies": { | ||
"@builder.io/eslint-plugin-mitosis": "0.0.16", | ||
"@builder.io/mitosis": "0.5.28", | ||
"@builder.io/mitosis-cli": "0.5.28", | ||
"@builder.io/mitosis": "0.5.30", | ||
"@builder.io/mitosis-cli": "0.5.30", | ||
"cpr": "3.0.1", | ||
@@ -55,0 +55,0 @@ "cssnano": "^7.0.6", |
4705591
28499
+ Added@db-ui/foundations@0.7.2-shell-c96667f(transitive)
- Removed@db-ui/foundations@0.7.1(transitive)