Skip to content

Commit

Permalink
fix: chalk on esm (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Oct 5, 2021
1 parent 66f65b9 commit db3506f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
"@antfu/utils": "^0.3.0",
"@iconify/json-tools": "^1.0.10",
"@iconify/utils": "^1.0.10",
"chalk": "^4.1.2",
"debug": "^4.3.2",
"local-pkg": "^0.3.0",
"nanocolors": "^0.2.12",
"unplugin": "^0.2.16"
},
"devDependencies": {
Expand Down
11 changes: 8 additions & 3 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/core/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { installPackage } from '@antfu/install-pkg'
import { sleep } from '@antfu/utils'
import { cyan, yellow } from 'chalk'
import { cyan, yellow } from 'nanocolors'

export function camelize(str: string) {
return str.replace(/-([a-z0-9])/g, g => g[1].toUpperCase())
Expand Down

0 comments on commit db3506f

Please sign in to comment.