Skip to content

Commit

Permalink
fix: 临时 patch 修复 element-plus types 导出
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyingwen authored and Eveimo committed Jul 13, 2023
1 parent 86fc1a7 commit 4b0d0e2
Show file tree
Hide file tree
Showing 7 changed files with 652 additions and 603 deletions.
6 changes: 0 additions & 6 deletions auto-imports.d.ts

This file was deleted.

12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
},
"dependencies": {
"@icon-park/vue-next": "^1.4.2",
"element-plus": "^2.3.6",
"less": "^4.1.3",
"element-plus": "^2.3.7",
"pinia": "^2.1.4",
"pinia-plugin-persist": "^1.0.0",
"postcss-pxtorem": "^6.0.0",
"vue": "^3.2.47",
"vue-router": "^4.2.2"
},
Expand All @@ -38,8 +36,11 @@
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-vue": "~9.14.1",
"husky": "^8.0.0",
"less": "^4.1.3",
"lint-staged": "^13.2.3",
"postcss": "^8.0.0",
"postcss-html": "~1.5.0",
"postcss-pxtorem": "^6.0.0",
"prettier": "~2.8.8",
"stylelint": "~15.7.0",
"stylelint-config-html": "~1.1.0",
Expand All @@ -54,5 +55,10 @@
"vite": "^4.3.9",
"vue-eslint-parser": "~9.3.1",
"vue-tsc": "^1.4.2"
},
"pnpm": {
"patchedDependencies": {
"element-plus@2.3.7": "patches/element-plus@2.3.7.patch"
}
}
}
35 changes: 35 additions & 0 deletions patches/element-plus@2.3.7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
diff --git a/package.json b/package.json
index 52a84ce0770e9edcf8d681e4382baa997a39fb81..779d3e47da6c547317e8e6c5e66fbc95a23d0dc2 100644
--- a/package.json
+++ b/package.json
@@ -24,10 +24,16 @@
"import": "./es/index.mjs",
"require": "./lib/index.js"
},
- "./es": "./es/index.mjs",
+ "./es": {
+ "types": "./es/index.d.ts",
+ "import": "./es/index.mjs"
+ },
"./lib": "./lib/index.js",
"./es/*.mjs": "./es/*.mjs",
- "./es/*": "./es/*.mjs",
+ "./es/*": {
+ "types": "./es/*/index.d.ts",
+ "import": "./es/*.mjs"
+ },
"./lib/*.js": "./lib/*.js",
"./lib/*": "./lib/*.js",
"./*": "./*"
@@ -80,10 +86,6 @@
"attributes": "attributes.json"
},
"web-types": "web-types.json",
- "browserslist": [
- "> 1%",
- "not ie 11",
- "not op_mini all"
- ],
+ "browserslist": ["> 1%", "not ie 11", "not op_mini all"],
"gitHead": "8bd65257ed67f0aa4c55eed168cd149a7911c80d"
}
Loading

0 comments on commit 4b0d0e2

Please sign in to comment.