Skip to content

Commit af562a7

Browse files
committed
fix: 更新依赖,解决 ts 类型错误
1 parent b0786cc commit af562a7

File tree

3 files changed

+365
-147
lines changed

3 files changed

+365
-147
lines changed

packages/taro-ui-demo/package.json

Lines changed: 84 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,86 @@
11
{
2-
"private": true,
3-
"name": "taro-ui-demo",
4-
"version": "3.0.0-alpha.11",
5-
"description": "Taro UI demo",
6-
"author": "O2Team <aotu.io>",
7-
"homepage": "https://taro-ui.aotu.io",
8-
"repository": {
9-
"type": "git",
10-
"url": "git@github.com:nervjs/taro-ui.git"
11-
},
12-
"license": "MIT",
13-
"templateInfo": {
14-
"name": "default",
15-
"typescript": true,
16-
"css": "sass"
17-
},
18-
"scripts": {
19-
"build": "yarn run build:h5",
20-
"build:weapp": "taro build --type weapp",
21-
"build:swan": "taro build --type swan",
22-
"build:alipay": "taro build --type alipay",
23-
"build:tt": "taro build --type tt",
24-
"build:h5": "taro build --type h5",
25-
"build:rn": "taro build --type rn",
26-
"build:qq": "taro build --type qq",
27-
"build:quickapp": "taro build --type quickapp",
28-
"dev:weapp": "yarn run build:weapp --watch",
29-
"dev:swan": "yarn run build:swan --watch",
30-
"dev:alipay": "yarn run build:alipay --watch",
31-
"dev:tt": "yarn run build:tt --watch",
32-
"dev:h5": "yarn run build:h5 --watch",
33-
"dev:rn": "yarn run build:rn --watch",
34-
"dev:qq": "yarn run build:qq --watch",
35-
"dev:quickapp": "yarn run build:quickapp --watch",
36-
"clean": "rimraf .temp dist"
37-
},
38-
"browserslist": [
39-
"last 3 versions",
40-
"Android >= 4.1",
41-
"ios >= 8"
42-
],
43-
"dependencies": {
44-
"@babel/runtime": "^7.7.7",
45-
"@tarojs/components": "3.6.1",
46-
"@tarojs/helper": "3.6.1",
47-
"@tarojs/plugin-platform-weapp": "3.6.1",
48-
"@tarojs/plugin-platform-alipay": "3.6.1",
49-
"@tarojs/plugin-platform-tt": "3.6.1",
50-
"@tarojs/plugin-platform-swan": "3.6.1",
51-
"@tarojs/plugin-platform-jd": "3.6.1",
52-
"@tarojs/plugin-platform-qq": "3.6.1",
53-
"@tarojs/plugin-platform-h5": "3.6.1",
54-
"@tarojs/runtime": "3.6.1",
55-
"@tarojs/shared": "3.6.1",
56-
"@tarojs/taro": "3.6.1",
57-
"@tarojs/plugin-framework-react": "3.6.1",
58-
"@tarojs/react": "3.6.1",
59-
"react-dom": "^18.0.0",
60-
"react": "^18.0.0",
61-
"taro-ui": "file:../taro-ui"
62-
},
63-
"devDependencies": {
64-
"@babel/core": "^7.8.0",
65-
"@tarojs/cli": "3.6.1",
66-
"@types/webpack-env": "^1.13.6",
67-
"@types/react": "^18.0.0",
68-
"@tarojs/mini-runner": "3.6.1",
69-
"@tarojs/webpack-runner": "3.6.1",
70-
"webpack": "4.46.0",
71-
"babel-preset-taro": "3.6.1",
72-
"eslint-config-taro": "3.6.1",
73-
"eslint": "^8.12.0",
74-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
75-
"react-refresh": "^0.11.0",
76-
"eslint-plugin-react": "^7.8.2",
77-
"eslint-plugin-import": "^2.12.0",
78-
"eslint-plugin-react-hooks": "^4.2.0",
79-
"stylelint": "^14.4.0",
80-
"@typescript-eslint/parser": "^5.20.0",
81-
"@typescript-eslint/eslint-plugin": "^5.20.0",
82-
"typescript": "^4.1.0",
83-
"postcss": "^8.4.18"
84-
}
2+
"private": true,
3+
"name": "taro-ui-demo",
4+
"version": "3.0.0-alpha.11",
5+
"description": "Taro UI demo",
6+
"author": "O2Team <aotu.io>",
7+
"homepage": "https://taro-ui.aotu.io",
8+
"repository": {
9+
"type": "git",
10+
"url": "git@github.com:nervjs/taro-ui.git"
11+
},
12+
"license": "MIT",
13+
"templateInfo": {
14+
"name": "default",
15+
"typescript": true,
16+
"css": "sass"
17+
},
18+
"scripts": {
19+
"build": "yarn run build:h5",
20+
"build:weapp": "taro build --type weapp",
21+
"build:swan": "taro build --type swan",
22+
"build:alipay": "taro build --type alipay",
23+
"build:tt": "taro build --type tt",
24+
"build:h5": "taro build --type h5",
25+
"build:rn": "taro build --type rn",
26+
"build:qq": "taro build --type qq",
27+
"build:quickapp": "taro build --type quickapp",
28+
"dev:weapp": "yarn run build:weapp --watch",
29+
"dev:swan": "yarn run build:swan --watch",
30+
"dev:alipay": "yarn run build:alipay --watch",
31+
"dev:tt": "yarn run build:tt --watch",
32+
"dev:h5": "yarn run build:h5 --watch",
33+
"dev:rn": "yarn run build:rn --watch",
34+
"dev:qq": "yarn run build:qq --watch",
35+
"dev:quickapp": "yarn run build:quickapp --watch",
36+
"clean": "rimraf .temp dist"
37+
},
38+
"browserslist": [
39+
"last 3 versions",
40+
"Android >= 4.1",
41+
"ios >= 8"
42+
],
43+
"dependencies": {
44+
"@babel/runtime": "^7.7.7",
45+
"@tarojs/components": "3.6.1",
46+
"@tarojs/helper": "3.6.1",
47+
"@tarojs/plugin-framework-react": "3.6.1",
48+
"@tarojs/plugin-platform-alipay": "3.6.1",
49+
"@tarojs/plugin-platform-h5": "3.6.1",
50+
"@tarojs/plugin-platform-jd": "3.6.1",
51+
"@tarojs/plugin-platform-qq": "3.6.1",
52+
"@tarojs/plugin-platform-swan": "3.6.1",
53+
"@tarojs/plugin-platform-tt": "3.6.1",
54+
"@tarojs/plugin-platform-weapp": "3.6.1",
55+
"@tarojs/react": "3.6.1",
56+
"@tarojs/runtime": "3.6.1",
57+
"@tarojs/shared": "3.6.1",
58+
"@tarojs/taro": "3.6.1",
59+
"react": "^18.0.0",
60+
"react-dom": "^18.0.0",
61+
"taro-ui": "file:../taro-ui"
62+
},
63+
"devDependencies": {
64+
"@babel/core": "^7.8.0",
65+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
66+
"@tarojs/cli": "3.6.1",
67+
"@tarojs/mini-runner": "3.6.1",
68+
"@tarojs/webpack-runner": "3.6.1",
69+
"@types/react": "^18.0.0",
70+
"@types/react-dom": "^18.0.0",
71+
"@types/webpack-env": "^1.13.6",
72+
"@typescript-eslint/eslint-plugin": "^5.20.0",
73+
"@typescript-eslint/parser": "^5.20.0",
74+
"babel-preset-taro": "3.6.1",
75+
"eslint": "^8.12.0",
76+
"eslint-config-taro": "3.6.1",
77+
"eslint-plugin-import": "^2.12.0",
78+
"eslint-plugin-react": "^7.8.2",
79+
"eslint-plugin-react-hooks": "^4.2.0",
80+
"postcss": "^8.4.18",
81+
"react-refresh": "^0.11.0",
82+
"stylelint": "^14.4.0",
83+
"typescript": "^4.1.0",
84+
"webpack": "4.46.0"
85+
}
8586
}

packages/taro-ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
"@types/node": "^13.11.1",
6464
"@types/react": "^16.9.23",
6565
"@types/react-dom": "^16.9.5",
66-
"react": "^16.13.0",
67-
"react-dom": "^16.13.0",
66+
"react": "^18.0.0",
67+
"react-dom": "^18.0.0",
6868
"rollup": "^2.3.1",
6969
"rollup-plugin-copy": "^3.3.0",
7070
"rollup-plugin-typescript2": "^0.27.0",

0 commit comments

Comments
 (0)