diff --git a/package.json b/package.json index d8c482fe6..b56055fa4 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "leven": "3.1.0", "lines-and-columns": "2.0.3", "linguist-languages": "7.15.0", - "lodash": "4.17.21", + "lodash-es": "4.17.21", "mem": "9.0.2", "meriyah": "4.2.0", "micromatch": "4.0.4", diff --git a/src/cli/options/create-minimist-options.js b/src/cli/options/create-minimist-options.js index 2bc069462..c323a0c6c 100644 --- a/src/cli/options/create-minimist-options.js +++ b/src/cli/options/create-minimist-options.js @@ -1,4 +1,4 @@ -import partition from "lodash/partition.js"; +import { partition } from "lodash-es"; export default function createMinimistOptions(detailedOptions) { const [boolean, string] = partition( diff --git a/src/cli/options/parse-cli-arguments.js b/src/cli/options/parse-cli-arguments.js index 114733eb5..ddffaaf8c 100644 --- a/src/cli/options/parse-cli-arguments.js +++ b/src/cli/options/parse-cli-arguments.js @@ -1,4 +1,4 @@ -import pick from "lodash/pick.js"; +import { pick } from "lodash-es"; import camelCase from "camelcase"; import chalk from "chalk"; import prettierInternal from "../prettier-internal.js"; diff --git a/src/cli/usage.js b/src/cli/usage.js index d70787f13..939afc697 100644 --- a/src/cli/usage.js +++ b/src/cli/usage.js @@ -1,4 +1,4 @@ -import groupBy from "lodash/groupBy.js"; +import { groupBy } from "lodash-es"; import camelCase from "camelcase"; import * as constant from "./constant.js"; diff --git a/src/common/load-plugins.js b/src/common/load-plugins.js index c34a6e39a..851c17ab8 100644 --- a/src/common/load-plugins.js +++ b/src/common/load-plugins.js @@ -2,8 +2,7 @@ import { createRequire } from "module"; import fs from "fs"; import path from "path"; import { fileURLToPath } from "url"; -import uniqBy from "lodash/uniqBy.js"; -import partition from "lodash/partition.js"; +import { uniqBy, partition } from "lodash-es"; import fastGlob from "fast-glob"; import mem, { memClear } from "mem"; import thirdParty from "./third-party.cjs"; diff --git a/yarn.lock b/yarn.lock index ab96d859d..99e0b17b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4788,6 +4788,11 @@ locate-path@^7.1.0: dependencies: p-locate "^6.0.0" +lodash-es@4.17.21: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee" + integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw== + lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"