Skip to content

Commit

Permalink
fix: add react-dom into peerDependencies (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahluftyang authored Feb 10, 2025
1 parent e11af81 commit 235be5d
Show file tree
Hide file tree
Showing 20 changed files with 95 additions and 47 deletions.
21 changes: 21 additions & 0 deletions .changeset/red-numbers-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
"@sipe-team/radio-group": patch
"@sipe-team/typography": patch
"@sipe-team/checkbox": patch
"@sipe-team/skeleton": patch
"@sipe-team/divider": patch
"@sipe-team/tooltip": patch
"@sipe-team/avatar": patch
"@sipe-team/button": patch
"@sipe-team/switch": patch
"@sipe-team/input": patch
"@sipe-team/badge": patch
"@sipe-team/reset": patch
"@sipe-team/card": patch
"@sipe-team/flex": patch
"@sipe-team/grid": patch
"@sipe-team/icon": patch
"@sipe-team/side": patch
---

fix: add react-dom into peerDependencies
3 changes: 2 additions & 1 deletion .templates/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/Input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
15 changes: 8 additions & 7 deletions packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"typecheck": "tsc",
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"clsx": "^2.1.1",
"nanoid": "^5.0.9"
},
"devDependencies": {
"@storybook/addon-essentials": "catalog:",
"@storybook/addon-interactions": "catalog:",
Expand All @@ -40,7 +45,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand All @@ -59,10 +65,5 @@
"./styles.css": "./dist/index.css"
}
},
"sideEffects": false,
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"clsx": "^2.1.1",
"nanoid": "^5.0.9"
}
"sideEffects": false
}
11 changes: 6 additions & 5 deletions packages/divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"typecheck": "tsc",
"prepack": "pnpm run build"
},
"dependencies": {
"clsx": "^2.1.1"
},
"devDependencies": {
"@sipe-team/typography": "workspace:*",
"@storybook/addon-essentials": "catalog:",
Expand All @@ -41,7 +44,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand All @@ -59,8 +63,5 @@
"./styles.css": "./dist/index.css"
}
},
"sideEffects": false,
"dependencies": {
"clsx": "^2.1.1"
}
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/flex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
13 changes: 7 additions & 6 deletions packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"typecheck": "tsc",
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"clsx": "^2.1.1"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@storybook/addon-essentials": "catalog:",
Expand All @@ -40,7 +44,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand All @@ -59,9 +64,5 @@
"./styles.css": "./dist/index.css"
}
},
"sideEffects": false,
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"clsx": "^2.1.1"
}
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/radio-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
13 changes: 7 additions & 6 deletions packages/reset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"typecheck": "tsc",
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"classnames": "^2.5.1"
},
"devDependencies": {
"@storybook/addon-essentials": "catalog:",
"@storybook/addon-interactions": "catalog:",
Expand All @@ -39,7 +43,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand All @@ -57,9 +62,5 @@
}
}
},
"sideEffects": false,
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"classnames": "^2.5.1"
}
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/side/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"typescript": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
11 changes: 6 additions & 5 deletions packages/skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"typecheck": "tsc",
"prepack": "pnpm run build"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@storybook/addon-essentials": "catalog:",
Expand All @@ -41,7 +44,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand All @@ -60,8 +64,5 @@
"./styles.css": "./dist/index.css"
}
},
"sideEffects": false,
"dependencies": {
"@radix-ui/react-slot": "^1.1.0"
}
"sideEffects": false
}
13 changes: 7 additions & 6 deletions packages/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"typecheck": "tsc",
"prepack": "pnpm run build"
},
"dependencies": {
"@sipe-team/tokens": "workspace:^",
"clsx": "^2.1.1"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@storybook/addon-essentials": "catalog:",
Expand All @@ -42,7 +46,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand All @@ -60,9 +65,5 @@
"./styles.css": "./dist/index.css"
}
},
"sideEffects": false,
"dependencies": {
"@sipe-team/tokens": "workspace:^",
"clsx": "^2.1.1"
}
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/tooltip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 2 additions & 1 deletion packages/typography/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"vitest": "catalog:"
},
"peerDependencies": {
"react": ">= 18"
"react": ">= 18",
"react-dom": ">= 18"
},
"publishConfig": {
"access": "public",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 235be5d

Please sign in to comment.