Skip to content

Commit 09fd0b6

Browse files
committed
feat: ugrade react version
1 parent 70d0c8a commit 09fd0b6

File tree

2 files changed

+15
-41
lines changed

2 files changed

+15
-41
lines changed

package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"name": "dt-react-monaco-editor",
33
"version": "1.0.1",
44
"description": "Monaco editor for React.",
5-
"authors": [
6-
"Jerome",
7-
"Hayden"
8-
],
5+
"authors": "DTStack Corporation",
96
"keywords": [
107
"react",
118
"monaco",
@@ -23,9 +20,10 @@
2320
],
2421
"scripts": {
2522
"prepare": "husky install",
26-
"build": "rm -rf lib && tsc",
23+
"prepublishOnly": "npm run compile",
24+
"compile": "rm -rf lib && tsc",
2725
"watch": "rm -rf lib && tsc --watch",
28-
"release": "npm run build && node ./scripts/release.js",
26+
"release": "npm run compile && node ./scripts/release.js",
2927
"check-types": "tsc --noEmit --skipLibCheck",
3028
"lint": "prettier --check './src/**/*.{js,jsx,tsx,ts,less}'",
3129
"lint-fix": "prettier --write './src/**/*.{js,jsx,tsx,ts,less}'"
@@ -37,22 +35,21 @@
3735
"@commitlint/cli": "^17.6.3",
3836
"@commitlint/config-conventional": "^17.6.3",
3937
"@commitlint/cz-commitlint": "^17.5.0",
40-
"@types/react": "^16.9.2",
38+
"@types/react": "18.x",
4139
"commitizen": "^4.3.0",
42-
"dt-python-parser": "0.8.0",
4340
"husky": "^8.0.3",
4441
"inquirer": "^8.2.2",
4542
"lint-staged": "^10.0.7",
4643
"monaco-editor": "0.31.1",
4744
"prettier": "^2.2.0",
48-
"react": "^17.0.2",
45+
"react": "18.x",
4946
"standard-version": "^7.0.1",
5047
"tslib": "^2.5.0",
5148
"typescript": "^5.0.4"
5249
},
5350
"peerDependencies": {
5451
"monaco-editor": "^0.31.0",
55-
"react": ">=16.13.1 <18.x"
52+
"react": ">=16.13.1"
5653
},
5754
"license": "MIT"
5855
}

pnpm-lock.yaml

Lines changed: 8 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)