diff --git a/.changeset/gentle-singers-poke.md b/.changeset/gentle-singers-poke.md new file mode 100644 index 00000000..8486f819 --- /dev/null +++ b/.changeset/gentle-singers-poke.md @@ -0,0 +1,5 @@ +--- +"vite-plugin-checker": patch +--- + +Remove lodash per method packages diff --git a/packages/vite-plugin-checker/package.json b/packages/vite-plugin-checker/package.json index 3f35b574..2b7b60b9 100644 --- a/packages/vite-plugin-checker/package.json +++ b/packages/vite-plugin-checker/package.json @@ -46,8 +46,7 @@ "commander": "^8.0.0", "fast-glob": "^3.2.7", "fs-extra": "^11.1.0", - "lodash.debounce": "^4.0.8", - "lodash.pick": "^4.4.0", + "lodash-es": "^4.17.21", "npm-run-path": "^4.0.1", "semver": "^7.5.0", "strip-ansi": "^6.0.0", @@ -97,8 +96,7 @@ "devDependencies": { "@types/eslint": "^7.2.14", "@types/fs-extra": "^11.0.1", - "@types/lodash.debounce": "^4.0.6", - "@types/lodash.pick": "^4.4.6", + "@types/lodash-es": "^4.17.12", "@types/semver": "^7.3.13", "@volar/vue-typescript": "^0.33.0", "esbuild": "^0.14.27", diff --git a/packages/vite-plugin-checker/src/main.ts b/packages/vite-plugin-checker/src/main.ts index 05deb4f7..37951213 100644 --- a/packages/vite-plugin-checker/src/main.ts +++ b/packages/vite-plugin-checker/src/main.ts @@ -1,6 +1,6 @@ import chalk from 'chalk' import { spawn } from 'child_process' -import pick from 'lodash.pick' +import { pick } from 'lodash-es' import npmRunPath from 'npm-run-path' import { Checker } from './Checker.js' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a0c06535..3b80fba1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -127,8 +127,7 @@ importers: '@babel/code-frame': ^7.12.13 '@types/eslint': ^7.2.14 '@types/fs-extra': ^11.0.1 - '@types/lodash.debounce': ^4.0.6 - '@types/lodash.pick': ^4.4.6 + '@types/lodash-es': ^4.17.12 '@types/semver': ^7.3.13 '@volar/vue-typescript': ^0.33.0 ansi-escapes: ^4.3.0 @@ -138,8 +137,7 @@ importers: esbuild: ^0.14.27 fast-glob: ^3.2.7 fs-extra: ^11.1.0 - lodash.debounce: ^4.0.8 - lodash.pick: ^4.4.0 + lodash-es: ^4.17.21 meow: ^9.0.0 npm-run-all: ^4.1.5 npm-run-path: ^4.0.1 @@ -165,8 +163,7 @@ importers: commander: 8.3.0 fast-glob: 3.2.11 fs-extra: 11.1.0 - lodash.debounce: 4.0.8 - lodash.pick: 4.4.0 + lodash-es: 4.17.21 npm-run-path: 4.0.1 semver: 7.5.0 strip-ansi: 6.0.1 @@ -178,8 +175,7 @@ importers: devDependencies: '@types/eslint': 7.29.0 '@types/fs-extra': 11.0.1 - '@types/lodash.debounce': 4.0.7 - '@types/lodash.pick': 4.4.7 + '@types/lodash-es': 4.17.12 '@types/semver': 7.3.13 '@volar/vue-typescript': 0.33.9 esbuild: 0.14.54 @@ -2019,20 +2015,14 @@ packages: '@types/node': 16.11.49 dev: true - /@types/lodash.debounce/4.0.7: - resolution: {integrity: sha512-X1T4wMZ+gT000M2/91SYj0d/7JfeNZ9PeeOldSNoE/lunLeQXKvkmIumI29IaKMotU/ln/McOIvgzZcQ/3TrSA==} + /@types/lodash-es/4.17.12: + resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==} dependencies: - '@types/lodash': 4.14.182 + '@types/lodash': 4.14.202 dev: true - /@types/lodash.pick/4.4.7: - resolution: {integrity: sha512-HgdyKz7/1+oeoVzbpu1XiX/Bti9AUksHtOILH38T07aKvqoirzcdOsrO2+Yg3L51Hv/8m1MetvHZEUGeABiTiQ==} - dependencies: - '@types/lodash': 4.14.182 - dev: true - - /@types/lodash/4.14.182: - resolution: {integrity: sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==} + /@types/lodash/4.14.202: + resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==} dev: true /@types/mime/3.0.1: @@ -6022,14 +6012,14 @@ packages: p-locate: 5.0.0 dev: true + /lodash-es/4.17.21: + resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + dev: false + /lodash.clonedeep/4.5.0: resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==} dev: true - /lodash.debounce/4.0.8: - resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} - dev: false - /lodash.iserror/3.1.1: resolution: {integrity: sha512-eT/VeNns9hS7vAj1NKW/rRX6b+C3UX3/IAAqEE7aC4Oo2C0iD82NaP5IS4bSlQsammTii4qBJ8G1zd1LTL8hCw==} dev: true @@ -6042,10 +6032,6 @@ packages: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} dev: true - /lodash.pick/4.4.0: - resolution: {integrity: sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q==} - dev: false - /lodash.sortby/4.7.0: resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} dev: true