Skip to content

Commit

Permalink
fix: remove "use client" directive from non-component packages (#7936)
Browse files Browse the repository at this point in the history
* fix: remove "use-client" directive from non-component packages

* chore: add changeset
  • Loading branch information
yukukotani authored Aug 15, 2023
1 parent 76dffc8 commit 58e059d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/famous-forks-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@chakra-ui/theme-tools": patch
"@chakra-ui/anatomy": patch
"@chakra-ui/theme": patch
---

remove "use client" directive
10 changes: 9 additions & 1 deletion packages/components/anatomy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,13 @@
"devDependencies": {
"clean-package": "2.2.0"
},
"clean-package": "../../../clean-package.config.json"
"clean-package": "../../../clean-package.config.json",
"tsup": {
"format": [
"cjs",
"esm"
],
"target": "es2019",
"sourcemap": true
}
}
10 changes: 9 additions & 1 deletion packages/components/theme-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,13 @@
"prepack": "clean-package",
"postpack": "clean-package restore"
},
"clean-package": "../../../clean-package.config.json"
"clean-package": "../../../clean-package.config.json",
"tsup": {
"format": [
"cjs",
"esm"
],
"target": "es2019",
"sourcemap": true
}
}
8 changes: 8 additions & 0 deletions packages/components/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,13 @@
"build:fast": "tsup src",
"prepack": "clean-package",
"postpack": "clean-package restore"
},
"tsup": {
"format": [
"cjs",
"esm"
],
"target": "es2019",
"sourcemap": true
}
}

1 comment on commit 58e059d

@vercel
Copy link

@vercel vercel bot commented on 58e059d Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.