Skip to content

Commit cce327e

Browse files
authored
chore: switch lodash for es-toolkit (#127)
1 parent 5f5a0b7 commit cce327e

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@
4040
],
4141
"devDependencies": {
4242
"@rollup/plugin-typescript": "^12.3.0",
43-
"@types/lodash": "^4.17.24",
4443
"@types/node": "^25.5.0",
4544
"@vitest/coverage-v8": "^4.1.0",
46-
"lodash": "^4.17.23",
45+
"es-toolkit": "^1.45.1",
4746
"prettier": "^3.8.1",
4847
"rimraf": "^6.1.3",
4948
"rollup": "^4.59.0",

pnpm-lock.yaml

Lines changed: 8 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { exec } from "child_process";
2-
import lodash from "lodash";
32
import typescript from "@rollup/plugin-typescript";
43
import dts from "rollup-plugin-dts";
4+
import { camelCase } from "es-toolkit";
55

66
const tsconfig = "tsconfig.build.json";
77

@@ -42,7 +42,7 @@ export default [
4242
output: [
4343
{
4444
dir: "dist",
45-
name: lodash.camelCase(libraryName),
45+
name: camelCase(libraryName),
4646
format: "es",
4747
},
4848
],

0 commit comments

Comments
 (0)