From 64a2915528f0e5421aedbe44b9a01b1550f4d2f5 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Tue, 16 Sep 2025 21:52:13 +0700 Subject: [PATCH 1/2] build: change package.json, update peer dependencies --- package.json | 22 +++++++++++----------- pnpm-lock.yaml | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index a07da42..2626863 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,20 @@ { "name": "1byte-react-design", - "version": "1.6.6", - "main": "dist/index.js", - "module": "dist/index.js", - "types": "dist/index.d.ts", - "files": [ - "dist" - ], + "version": "1.6.7", + "description": "A simple React UI library", + "main": "src/index.tsx", + "module": "src/index.tsx", + "types": "src/index.tsx", "license": "MIT", "scripts": { "build": "webpack --config webpack.config.js", "test": "yalc publish --push --no-scripts --files .", "tsc": "tsc -p tsconfig.json" }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "dependencies": { "@ant-design/cssinjs": "^1.24.0", "@ant-design/cssinjs-utils": "^1.1.3", @@ -33,17 +35,15 @@ "rc-slider": "^11.1.8", "rc-table": "^7.53.0", "rc-tree": "^5.13.1", - "react": "^18.3.1", - "react-dom": "^18.3.1", "react-hook-form": "^7.53.0", "react-router-dom": "^6.28.0" }, "devDependencies": { + "@types/react": "^18.3.10", + "@types/react-dom": "^18.3.0", "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.4", "@babel/preset-react": "^7.24.7", - "@types/react": "^18.3.10", - "@types/react-dom": "^18.3.0", "babel-loader": "^9.2.1", "css-loader": "^7.1.2", "style-loader": "^4.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c2980a5..18e0fb3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,10 +66,10 @@ importers: specifier: ^5.13.1 version: 5.13.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: - specifier: ^18.3.1 + specifier: ^18.0.0 version: 18.3.1 react-dom: - specifier: ^18.3.1 + specifier: ^18.0.0 version: 18.3.1(react@18.3.1) react-hook-form: specifier: ^7.53.0 From a19f6c65ceb1e32e66e95c62b5c1342b7790a216 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Tue, 16 Sep 2025 22:05:51 +0700 Subject: [PATCH 2/2] build: change version 1.6.7 --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2626863..0496536 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,12 @@ "name": "1byte-react-design", "version": "1.6.7", "description": "A simple React UI library", - "main": "src/index.tsx", - "module": "src/index.tsx", - "types": "src/index.tsx", + "main": "dist/index.js", + "module": "dist/index.js", + "types": "dist/index.d.ts", + "files": [ + "dist" + ], "license": "MIT", "scripts": { "build": "webpack --config webpack.config.js",