Skip to content

Commit

Permalink
chore: optimizeDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionad-Morotar committed Jun 12, 2023
1 parent 698ab3f commit d4b4270
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 2,075 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
dist/
node_modules
node_modules/
patches/
types/
!/.eslintrc.js
!/rollup.config.js
!.test
.temp
play
patch

playground
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.vscode
docs
node_modules
patch
play
src
.editorconfig
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,9 @@ console.log(nativeBar.thick) // usually 17px in Windows

## 🚩 Dev

如果在开发环境遇到 `xe-utils` 没有 esm 格式导出的问题,需使用 `./patch/xe-utils-esm` 这个包作为替代:

```bash
# 1. 使用本地依赖安装 xe-utils
pnpm link "link:./patch/xe-utils-esm"
# 2. 然后强制重启本地服务器
vite ./play --force
pnpm install
pnpm serve
```

## 📄 License
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"vue-eslint-parser": "^9.1.0",
"vue-tsc": "1.0.9",
"vue3": "npm:vue@^3.2.47",
"vxe-table": "4.3.9",
"xe-utils": "link:patch/xe-utils-esm"
"vxe-table": "^4.3.9",
"xe-utils": "^3.5.7"
},
"peerDependencies": {
"vue": "^3"
Expand All @@ -71,10 +71,7 @@
"svelte"
]
}
},
"resolutions": {
"xe-utils": "link:patch/xe-utils-esm"
},
},
"lint-staged": {
"*.{js,ts,tsx,vue}": [
"eslint --fix"
Expand Down
Loading

0 comments on commit d4b4270

Please sign in to comment.