Use lodash-es

This commit is contained in:
Nathan Bierema 2024-04-06 22:16:49 -04:00
parent df978aba1a
commit 99188054e8
3 changed files with 7 additions and 9 deletions

View File

@ -37,11 +37,11 @@
"prepublish": "pnpm run lint && pnpm run test" "prepublish": "pnpm run lint && pnpm run test"
}, },
"dependencies": { "dependencies": {
"lodash": "^4.17.21" "lodash-es": "^4.17.21"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^29.5.12", "@types/jest": "^29.5.12",
"@types/lodash": "^4.17.0", "@types/lodash-es": "^4.17.12",
"@typescript-eslint/eslint-plugin": "^7.4.0", "@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0", "@typescript-eslint/parser": "^7.4.0",
"eslint": "^8.57.0", "eslint": "^8.57.0",

View File

@ -1,6 +1,4 @@
import isArray from 'lodash/isArray'; import { isArray, isPlainObject, mapValues } from 'lodash-es';
import isPlainObject from 'lodash/isPlainObject';
import mapValues from 'lodash/mapValues';
export interface Node { export interface Node {
name: string; name: string;

View File

@ -374,16 +374,16 @@ importers:
packages/map2tree: packages/map2tree:
dependencies: dependencies:
lodash: lodash-es:
specifier: ^4.17.21 specifier: ^4.17.21
version: 4.17.21 version: 4.17.21
devDependencies: devDependencies:
'@types/jest': '@types/jest':
specifier: ^29.5.12 specifier: ^29.5.12
version: 29.5.12 version: 29.5.12
'@types/lodash': '@types/lodash-es':
specifier: ^4.17.0 specifier: ^4.17.12
version: 4.17.0 version: 4.17.12
'@typescript-eslint/eslint-plugin': '@typescript-eslint/eslint-plugin':
specifier: ^7.4.0 specifier: ^7.4.0
version: 7.4.0(@typescript-eslint/parser@7.4.0)(eslint@8.57.0)(typescript@5.3.3) version: 7.4.0(@typescript-eslint/parser@7.4.0)(eslint@8.57.0)(typescript@5.3.3)