Skip to content

Commit

Permalink
chore(env): 适配pnpm@9Nodejs 20 (#1855)
Browse files Browse the repository at this point in the history
* fix(build): fix error in typescript ast parsing

* fix(build): fix path error in recent pnpm

* chore(package): use `pnpm --filter` instead of `pnpm scripts`

* chore(pnpm): bump lock file to v9

* chore(deps): remove 3 deprecated dependencies
  • Loading branch information
fu050409 committed May 26, 2024
1 parent 231b8b3 commit 04035ad
Show file tree
Hide file tree
Showing 5 changed files with 8,459 additions and 6,491 deletions.
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@
"prepare": "husky install",
"precommit": "lint-staged",
"scripts": "better-scripts",
"dev": "pnpm scripts run dev",
"dev:site": "pnpm scripts run dev:site",
"build": "pnpm scripts run build",
"build:lib": "pnpm scripts run build:lib",
"build:lib:theme": "pnpm scripts run build:lib:theme",
"test": "pnpm scripts run tests.test"
"dev": "pnpm --filter vue-devui dev",
"dev:site": "pnpm --filter vue-devui dev:site",
"build": "pnpm --filter vue-devui build",
"build:lib": "pnpm --filter vue-devui build:lib",
"build:lib:theme": "pnpm --filter vue-devui build:lib:theme",
"test": "pnpm --filter vue-devui tests.test"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@ls-lint/ls-lint": "^1.10.0",
"@types/lodash": "^4.14.182",
"@types/node": "^16.11.6",
"all-contributors-cli": "^6.20.0",
"better-scripts": "^0.1.1",
"@ls-lint/ls-lint": "^1.11.2",
"@types/lodash": "^4.17.4",
"@types/node": "^16.18.97",
"all-contributors-cli": "^6.26.1",
"better-scripts": "^0.1.4",
"esbuild-register": "^2.6.0",
"eslint": "^7.28.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-vue": "^7.11.1",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-vue": "^7.20.0",
"husky": "^7.0.4",
"intersection-observer": "^0.12.2",
"lint-staged": "^11.0.0",
"lint-staged": "^11.2.6",
"npm-run-all": "^4.1.5",
"stylelint": "^13.13.1",
"stylelint-config-recommended-scss": "^4.3.0",
"stylelint-config-standard": "^22.0.0",
"stylelint-scss": "^3.20.1"
"stylelint-scss": "^3.21.0"
},
"lint-staged": {
"packages/**/{*.vue,*.js,*.ts,*.jsx,*.tsx}": "eslint --fix",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import './custom-blocks.scss';
@import './sidebar-links.scss';
@import './demo-block.scss';
@import 'devui-theme/src/theme-collection/extend-theme-vue.scss';
@import '../../devui-theme/src/theme-collection/extend-theme-vue.scss';
2 changes: 1 addition & 1 deletion packages/devui-vue/docs/components/editor-md/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default defineComponent({
const fd = new FormData();
fd.append('file', file);
xhr.send(fd);
}).then((res: any) => {
}).then((res) => {
if (res.status === 'success') {
callback({ name: file.name, imgUrl: res['imgUrl'], title: res['imgTitle'] });
} else {
Expand Down
3 changes: 0 additions & 3 deletions packages/devui-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,9 @@
"@commitlint/config-conventional": "^11.0.0",
"@docsearch/css": "^3.3.0",
"@docsearch/js": "^3.3.0",
"@types/chalk": "^2.2.0",
"@types/commander": "^2.12.2",
"@types/jest": "^26.0.24",
"@types/markdown-it": "^12.2.3",
"@types/node": "^16.11.6",
"@types/ora": "^3.2.0",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"@vitejs/plugin-vue": "^1.3.0",
Expand Down
Loading

0 comments on commit 04035ad

Please sign in to comment.