Skip to content

Commit

Permalink
chore(theme): commonjs support
Browse files Browse the repository at this point in the history
  • Loading branch information
naporin0624 committed Oct 23, 2024
1 parent 51a5c46 commit 02bb4dc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"@charcoal-ui/foundation": "^4.0.0-beta.15",
"@charcoal-ui/utils": "^4.0.0-beta.15",
"change-case": "^5.4.4",
"change-case-all": "^2.1.0",
"deepmerge": "^4.3.1",
"polished": "^4.1.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/token-object/helpers/changecase-keys.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { camelCase } from 'change-case'
import { camelCase } from 'change-case-all'

const isObject = (value: unknown): value is Record<string, unknown> => {
if (value instanceof RegExp) return false
Expand Down
39 changes: 37 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,7 @@ __metadata:
dependencies:
"@charcoal-ui/foundation": ^4.0.0-beta.15
"@charcoal-ui/utils": ^4.0.0-beta.15
change-case: ^5.4.4
change-case-all: ^2.1.0
cpx: ^1.5.0
deepmerge: ^4.3.1
npm-run-all: ^4.1.5
Expand Down Expand Up @@ -12274,6 +12274,18 @@ __metadata:
languageName: node
linkType: hard

"change-case-all@npm:^2.1.0":
version: 2.1.0
resolution: "change-case-all@npm:2.1.0"
dependencies:
change-case: ^5.2.0
sponge-case: ^2.0.2
swap-case: ^3.0.2
title-case: ^3.0.3
checksum: 0aadbdbde682976a9b34b05de930013404052a0eef75145405a99f7d59b06cbbad5a683d0c101b1823564e8d80b37da502884b9d9f6e7c36b8912fe5b2d3ac45
languageName: node
linkType: hard

"change-case@npm:^4.1.2":
version: 4.1.2
resolution: "change-case@npm:4.1.2"
Expand All @@ -12294,7 +12306,7 @@ __metadata:
languageName: node
linkType: hard

"change-case@npm:^5.4.4":
"change-case@npm:^5.2.0":
version: 5.4.4
resolution: "change-case@npm:5.4.4"
checksum: a22a25a763719658424ffbcd41e931d2d19cc22399cc765dca447fbe1eaf13e179d5e8ab1677af75f2e814dbddf74e42ffdecb526cd5bc906cc859f62aa154b2
Expand Down Expand Up @@ -26932,6 +26944,13 @@ __metadata:
languageName: node
linkType: hard

"sponge-case@npm:^2.0.2":
version: 2.0.3
resolution: "sponge-case@npm:2.0.3"
checksum: e66fd121e05c9414780283f286d78d487319cc678835bd47a173144261610329435a2a4b7752cd1c4df1531fce08951f5241a6235b291c6679ce1030932f5bc1
languageName: node
linkType: hard

"sprintf-js@npm:~1.0.2":
version: 1.0.3
resolution: "sprintf-js@npm:1.0.3"
Expand Down Expand Up @@ -27593,6 +27612,13 @@ __metadata:
languageName: node
linkType: hard

"swap-case@npm:^3.0.2":
version: 3.0.3
resolution: "swap-case@npm:3.0.3"
checksum: af210c61c9eecd8af539a214ba42c7f6ece7a9849dcd365bdd3e197200f909b134872b7ffa17f8227fed05215a1c46da343d08a8086f0b3400269ebd4676efe0
languageName: node
linkType: hard

"swc-loader@npm:^0.2.3":
version: 0.2.3
resolution: "swc-loader@npm:0.2.3"
Expand Down Expand Up @@ -27990,6 +28016,15 @@ __metadata:
languageName: node
linkType: hard

"title-case@npm:^3.0.3":
version: 3.0.3
resolution: "title-case@npm:3.0.3"
dependencies:
tslib: ^2.0.3
checksum: e8b7ea006b53cf3208d278455d9f1e22c409459d7f9878da324fa3b18cc0aef8560924c19c744e870394a5d9cddfdbe029ebae9875909ee7f4fc562e7cbfc53e
languageName: node
linkType: hard

"tmp@npm:^0.0.33":
version: 0.0.33
resolution: "tmp@npm:0.0.33"
Expand Down

0 comments on commit 02bb4dc

Please sign in to comment.