Skip to content

Commit 06df3a3

Browse files
committed
chore: upgrade deps
1 parent 70f4518 commit 06df3a3

File tree

8 files changed

+1697
-1529
lines changed

8 files changed

+1697
-1529
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@element-plus/icons-monorepo",
3+
"type": "module",
34
"version": "2.3.2",
45
"private": true,
5-
"packageManager": "[email protected]",
6-
"type": "module",
6+
"packageManager": "[email protected]",
77
"license": "MIT",
88
"scripts": {
99
"dev": "pnpm run -C playground dev",
@@ -14,12 +14,12 @@
1414
"release": "bumpp -r"
1515
},
1616
"devDependencies": {
17-
"@sxzz/eslint-config": "^7.1.2",
18-
"@sxzz/prettier-config": "^2.2.3",
19-
"bumpp": "^10.2.2",
20-
"eslint": "^9.32.0",
21-
"prettier": "^3.6.2",
22-
"typescript": "^5.9.2"
17+
"@sxzz/eslint-config": "^7.4.3",
18+
"@sxzz/prettier-config": "^2.2.6",
19+
"bumpp": "^10.3.2",
20+
"eslint": "^9.39.2",
21+
"prettier": "^3.7.4",
22+
"typescript": "^5.9.3"
2323
},
2424
"prettier": "@sxzz/prettier-config"
2525
}

packages/svg/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"name": "@element-plus/icons-svg",
33
"version": "2.3.2",
44
"description": "SVG icon for Element Plus Icons collection.",
5-
"keywords": [
6-
"icon",
7-
"svg",
8-
"element-plus"
9-
],
105
"license": "MIT",
116
"homepage": "https://element-plus.org/",
12-
"bugs": {
13-
"url": "https://github.com/element-plus/element-plus-icons/issues"
14-
},
157
"repository": {
168
"type": "git",
179
"url": "git+https://github.com/element-plus/element-plus-icons.git",
1810
"directory": "packages/svg"
1911
},
12+
"bugs": {
13+
"url": "https://github.com/element-plus/element-plus-icons/issues"
14+
},
15+
"keywords": [
16+
"icon",
17+
"svg",
18+
"element-plus"
19+
],
2020
"files": [
2121
"*.svg"
2222
],

packages/vue/build/generate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function formatCode(code: string, parser: BuiltInParserName = 'typescript') {
5050
}
5151

5252
async function transformToVueComponent(file: string) {
53-
const content = await readFile(file, 'utf-8')
53+
const content = await readFile(file, 'utf8')
5454
const { filename, componentName } = getName(file)
5555
const vue = await formatCode(
5656
`
@@ -64,7 +64,7 @@ defineOptions({
6464
</script>`,
6565
'vue',
6666
)
67-
writeFile(path.resolve(pathComponents, `${filename}.vue`), vue, 'utf-8')
67+
writeFile(path.resolve(pathComponents, `${filename}.vue`), vue, 'utf8')
6868
}
6969

7070
async function generateEntry(files: string[]) {
@@ -76,5 +76,5 @@ async function generateEntry(files: string[]) {
7676
})
7777
.join('\n'),
7878
)
79-
await writeFile(path.resolve(pathComponents, 'index.ts'), code, 'utf-8')
79+
await writeFile(path.resolve(pathComponents, 'index.ts'), code, 'utf8')
8080
}

packages/vue/package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
{
22
"name": "@element-plus/icons-vue",
3+
"type": "module",
34
"version": "2.3.2",
45
"description": "Vue components of Element Plus Icons collection.",
5-
"type": "module",
6-
"keywords": [
7-
"icon",
8-
"svg",
9-
"vue",
10-
"element-plus"
11-
],
126
"license": "MIT",
137
"homepage": "https://element-plus.org/",
14-
"bugs": {
15-
"url": "https://github.com/element-plus/element-plus-icons/issues"
16-
},
178
"repository": {
189
"type": "git",
1910
"url": "git+https://github.com/element-plus/element-plus-icons.git",
2011
"directory": "packages/vue"
2112
},
22-
"files": [
23-
"dist"
13+
"bugs": {
14+
"url": "https://github.com/element-plus/element-plus-icons/issues"
15+
},
16+
"keywords": [
17+
"icon",
18+
"svg",
19+
"vue",
20+
"element-plus"
2421
],
25-
"main": "./dist/index.cjs",
26-
"module": "./dist/index.js",
27-
"types": "./dist/types/index.d.ts",
22+
"sideEffects": false,
2823
"exports": {
2924
".": {
3025
"types": "./dist/types/index.d.ts",
@@ -38,6 +33,11 @@
3833
},
3934
"./*": "./*"
4035
},
36+
"main": "./dist/index.cjs",
37+
"module": "./dist/index.js",
38+
"unpkg": "dist/index.iife.min.js",
39+
"jsdelivr": "dist/index.iife.min.js",
40+
"types": "./dist/types/index.d.ts",
4141
"typesVersions": {
4242
"*": {
4343
"*": [
@@ -46,9 +46,9 @@
4646
]
4747
}
4848
},
49-
"sideEffects": false,
50-
"unpkg": "dist/index.iife.min.js",
51-
"jsdelivr": "dist/index.iife.min.js",
49+
"files": [
50+
"dist"
51+
],
5252
"scripts": {
5353
"build": "pnpm run build:generate && run-p build:build build:types",
5454
"build:generate": "tsx build/generate.ts",
@@ -60,24 +60,24 @@
6060
},
6161
"devDependencies": {
6262
"@element-plus/icons-svg": "workspace:*",
63-
"@pnpm/find-workspace-dir": "^1000.1.2",
63+
"@pnpm/find-workspace-dir": "^1000.1.3",
6464
"@pnpm/find-workspace-packages": "^6.0.9",
65-
"@pnpm/logger": "^1001.0.0",
65+
"@pnpm/logger": "^1001.0.1",
6666
"@types/fs-extra": "^11.0.4",
67-
"@types/node": "^24.2.0",
68-
"camelcase": "^8.0.0",
69-
"chalk": "^5.5.0",
67+
"@types/node": "^25.0.3",
68+
"camelcase": "^9.0.0",
69+
"chalk": "^5.6.2",
7070
"consola": "^3.4.2",
71-
"esbuild": "^0.25.8",
71+
"esbuild": "^0.27.2",
7272
"esbuild-plugin-globals": "^0.2.0",
7373
"fast-glob": "^3.3.3",
74-
"fs-extra": "^11.3.0",
74+
"fs-extra": "^11.3.3",
7575
"npm-run-all": "^4.1.5",
76-
"prettier": "^3.6.2",
77-
"tsx": "^4.20.3",
78-
"typescript": "^5.9.2",
79-
"unplugin-vue": "^7.0.1",
80-
"vue": "^3.5.18",
81-
"vue-tsc": "^3.0.5"
76+
"prettier": "^3.7.4",
77+
"tsx": "^4.21.0",
78+
"typescript": "^5.9.3",
79+
"unplugin-vue": "^7.1.0",
80+
"vue": "^3.5.26",
81+
"vue-tsc": "^3.2.0"
8282
}
8383
}

packages/vue/src/global.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
/* eslint-disable import/no-default-export */
21
import * as icons from './components'
32
import type { App } from 'vue'
43

54
export interface InstallOptions {
65
/** @default `ElIcon` */
76
prefix?: string
87
}
9-
export default (app: App, { prefix = 'ElIcon' }: InstallOptions = {}) => {
8+
// eslint-disable-next-line import/no-default-export
9+
export default function elementPlusIcons(
10+
app: App,
11+
{ prefix = 'ElIcon' }: InstallOptions = {},
12+
) {
1013
for (const [key, component] of Object.entries(icons)) {
1114
app.component(prefix + key, component)
1215
}

playground/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@element-plus/icons-playground",
3-
"private": true,
43
"type": "module",
4+
"private": true,
55
"license": "MIT",
66
"scripts": {
77
"dev": "vite",
@@ -11,11 +11,11 @@
1111
"dependencies": {
1212
"@element-plus/icons-svg": "workspace:*",
1313
"@element-plus/icons-vue": "workspace:*",
14-
"vue": "^3.5.18"
14+
"vue": "^3.5.26"
1515
},
1616
"devDependencies": {
17-
"@vitejs/plugin-vue": "^6.0.1",
18-
"typescript": "^5.9.2",
19-
"vite": "^7.0.6"
17+
"@vitejs/plugin-vue": "^6.0.3",
18+
"typescript": "^5.9.3",
19+
"vite": "^7.3.0"
2020
}
2121
}

0 commit comments

Comments
 (0)