Skip to content

Commit bf7ce94

Browse files
committed
ci: update sync script
1 parent 97da6f1 commit bf7ce94

File tree

1,372 files changed

+2269
-2453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,372 files changed

+2269
-2453
lines changed

packages/persona-icon/font/persona-icon.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@font-face {
22
font-family: 'Persona Icon';
3-
src: url('../font/persona-icon.eot?0975cc70');
4-
src: url('../font/persona-icon.eot?0975cc70#iefix') format('embedded-opentype'),
5-
url('../font/persona-icon.woff2?13b1d59d') format('woff2'),
6-
url('../font/persona-icon.woff?7ae47b0b') format('woff'),
7-
url('../font/persona-icon.ttf?83fd871d') format('truetype'),
8-
url('../font/persona-icon.svg?5da0a5a4#Persona%20Icon') format('svg');
3+
src: url('../font/persona-icon.eot?6dfc0884');
4+
src: url('../font/persona-icon.eot?6dfc0884#iefix') format('embedded-opentype'),
5+
url('../font/persona-icon.woff2?0692ea03') format('woff2'),
6+
url('../font/persona-icon.woff?0d70e115') format('woff'),
7+
url('../font/persona-icon.ttf?9fecabd2') format('truetype'),
8+
url('../font/persona-icon.svg?8f66b3b7#Persona%20Icon') format('svg');
99
font-weight: normal;
1010
font-style: normal;
1111
}
20 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4885d9bdd05ba16fad9562ce2c7ff5758e64bb191c4229427dea90baef895bdf
1+
0c5c719895eaa96db4fd5c051ae3aff51098169aee51cec000b725831e5b02a4

packages/persona-icon/font/persona-icon.svg

Lines changed: 171 additions & 171 deletions
Loading
20 Bytes
Binary file not shown.
-192 Bytes
Binary file not shown.
-168 Bytes
Binary file not shown.

packages/persona-icon/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"scripts": {
3737
"prepack": "yarn build",
3838
"build": "nuxt-module-build build",
39-
"lint": "node --import jiti/register scripts/lint.ts",
40-
"sync": "node --import jiti/register scripts/sync.ts",
41-
"changelog": "node --import jiti/register scripts/changelog.ts"
39+
"lint": "jiti scripts/lint.ts",
40+
"sync": "jiti scripts/sync.ts",
41+
"changelog": "jiti scripts/changelog.ts"
4242
},
4343
"devDependencies": {
4444
"@nuxt/module-builder": "1.0.1",
@@ -63,6 +63,7 @@
6363
"svg2ttf": "6.0.3",
6464
"svgicons2svgfont": "15.0.1",
6565
"svgo": "3.3.2",
66+
"svgo-fix-path": "^1.0.0",
6667
"ttf2eot": "3.1.0",
6768
"ttf2woff": "3.0.0",
6869
"ttf2woff2": "6.0.1"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* eslint-disable unicorn/prefer-module */
2+
import { type BuildContext } from 'unbuild'
3+
import {
4+
extname,
5+
basename,
6+
resolve,
7+
} from 'node:path'
8+
import fse from 'fs-extra'
9+
10+
export async function createResolver (context: BuildContext) {
11+
const meta: Record<string, string> = {}
12+
13+
for (const file of context.buildEntries) {
14+
const ext = extname(file.path)
15+
const name = basename(file.path, ext)
16+
17+
if (ext === '.vue')
18+
meta[`P${name}`] = file.path
19+
}
20+
21+
await fse.ensureFile(resolve(__dirname, '../dist/components/meta.json'))
22+
await fse.writeJSON(resolve(__dirname, '../dist/components/meta.json'), meta, { spaces: 2 })
23+
}

packages/persona-icon/scripts/fix-svg.local.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)