Skip to content

Commit

Permalink
✨ feat: Support React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jan 6, 2025
1 parent ad9e283 commit 9184e3d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 23 deletions.
4 changes: 4 additions & 0 deletions clean-package.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
indent: 2,
remove: ['scripts', 'lint-staged', 'devDependencies', 'publishConfig', 'clean-package'],
};
37 changes: 21 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
"doctor": "father doctor",
"i18n-md": "lobe-i18n md",
"lint": "eslint \"{src,api,lib}/**/*.{js,jsx,ts,tsx}\" --fix",
"lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
"lint:md": "remark . --quiet --frail --output",
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
"prepack": "clean-package",
"postpack": "clean-package restore",
"prepare": "husky && npm run setup",
"prepublishOnly": "npm run build",
"prettier": "prettier -c --write \"**/**\"",
Expand Down Expand Up @@ -66,18 +69,12 @@
]
},
"dependencies": {
"@babel/runtime": "^7.26.0",
"lodash-es": "^4.17.21",
"markdown-to-txt": "^2.0.1",
"query-string": "^9.1.1",
"react-error-boundary": "^4.1.2",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.2",
"swr": "^2.2.5",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"url-join": "^5.0.0",
"uuid": "^10.0.0"
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
Expand All @@ -91,10 +88,12 @@
"@vercel/node": "^3.2.26",
"@vitest/coverage-v8": "~1.2.2",
"babel-plugin-antd-style": "^1.0.4",
"clean-package": "^2.2.0",
"commitlint": "^19.6.0",
"concurrently": "^9.1.0",
"dpdm": "^3.14.0",
"dumi": "^2.4.14",
"dumi-theme-lobehub": "^1.10.8",
"dumi-theme-lobehub": "^1.11.0",
"eslint": "^8.57.1",
"father": "^4.5.1",
"husky": "^9.1.7",
Expand All @@ -110,14 +109,20 @@
"vitest": "~1.2.2"
},
"peerDependencies": {
"@lobehub/ui": ">=1",
"antd": ">=5",
"antd-style": ">=3",
"lucide-react": ">=0.396.0",
"openai": ">=4",
"react": ">=18",
"react-dom": ">=18",
"react-layout-kit": ">=1"
"@babel/runtime": "^7.0.0",
"@lobehub/ui": "^1.160.0",
"antd": "^5.22.0",
"antd-style": "^3.7.0",
"lodash-es": "^4.0.0",
"lucide-react": "^0.469.0",
"openai": "^4.0.0",
"query-string": "^9.0.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
"react-layout-kit": "^1.0.0",
"swr": "^2.3.0",
"url-join": "^5.0.0",
"uuid": "^11.0.0"
},
"publishConfig": {
"access": "public",
Expand Down
24 changes: 17 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "es6",
"types": ["vitest/globals"],
"paths": {
"@@/*": [".dumi/tmp/*"],
"@/*": ["./src/*"],
Expand All @@ -17,13 +22,18 @@
"@lobehub/tts/react/*": ["./src/react/*"],
"@lobehub/tts/server": ["./src/server"],
"@lobehub/tts/server/*": ["./src/server/*"]
},
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "es6",
"types": ["vitest/globals"]
}
},
"exclude": ["./react.d.ts", "./server.d.ts"],
"include": ["src", "docs", ".dumirc.ts", "api", "**/*.ts", "**/*.d.ts", "**/*.tsx"]
"include": [
"src",
"docs",
"tests",
"api",
".dumirc.ts",
".fatherrc.ts",
"**/*.ts",
"**/*.d.ts",
"**/*.tsx"
]
}

0 comments on commit 9184e3d

Please sign in to comment.