From ac80585c0a7079135c8e70a8ca38f7fdcf3d0e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rge=20N=C3=A6ss?= Date: Fri, 20 Sep 2024 15:30:04 +0200 Subject: [PATCH] fix depcheck errors --- package.json | 4 +-- packages/@repo/test-config/package.json | 3 ++- packages/@sanity/block-tools/package.json | 1 + packages/@sanity/cli/package.json | 1 + packages/@sanity/codegen/package.json | 1 + packages/@sanity/schema/package.json | 1 + packages/@sanity/types/package.json | 1 + packages/@sanity/util/package.json | 1 + perf/tests/package.json | 1 + pnpm-lock.yaml | 30 ++++++++++++++++++++--- 10 files changed, 38 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index fa6ddc20d13..64fda4065fe 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "@sanity/ui": "^2.8.9", "@sanity/uuid": "^3.0.2", "@types/glob": "^7.2.0", - "@types/lodash-es": "^4.17.7", + "@types/lodash": "^4.17.7", "@types/node": "^18.19.8", "@types/react": "^18.3.5", "@types/semver": "^7.5.6", @@ -158,7 +158,7 @@ "js-yaml": "^4.1.0", "lerna": "^8.1.8", "lint-staged": "^12.1.2", - "lodash-es": "^4.17.21", + "lodash": "^4.17.21", "minimist": "^1.2.5", "npm-run-all": "^4.1.5", "ora": "^8.0.1", diff --git a/packages/@repo/test-config/package.json b/packages/@repo/test-config/package.json index 99e34c97231..b8676385a37 100644 --- a/packages/@repo/test-config/package.json +++ b/packages/@repo/test-config/package.json @@ -12,6 +12,7 @@ "@jest/globals": "^29.7.0", "@repo/dev-aliases": "workspace:*", "dotenv": "^16.4.5", - "jest-environment-jsdom": "^29.7.0" + "jest-environment-jsdom": "^29.7.0", + "lodash-es": "^4.17.21" } } diff --git a/packages/@sanity/block-tools/package.json b/packages/@sanity/block-tools/package.json index 383e05e232e..afad7f710ec 100644 --- a/packages/@sanity/block-tools/package.json +++ b/packages/@sanity/block-tools/package.json @@ -57,6 +57,7 @@ "devDependencies": { "@jest/globals": "^29.7.0", "@repo/package.config": "workspace:*", + "@repo/test-config": "workspace:*", "@sanity/schema": "3.57.4", "@types/jsdom": "^20.0.0", "@types/lodash": "^4.17.7", diff --git a/packages/@sanity/cli/package.json b/packages/@sanity/cli/package.json index 25575ccdb60..5b8f7b5dc79 100644 --- a/packages/@sanity/cli/package.json +++ b/packages/@sanity/cli/package.json @@ -78,6 +78,7 @@ "devDependencies": { "@jest/globals": "^29.7.0", "@repo/package.config": "workspace:*", + "@repo/test-config": "workspace:*", "@rexxars/gitconfiglocal": "^3.0.1", "@rollup/plugin-node-resolve": "^15.2.3", "@sanity/eslint-config-studio": "^4.0.0", diff --git a/packages/@sanity/codegen/package.json b/packages/@sanity/codegen/package.json index f184a269ddf..2ada504f760 100644 --- a/packages/@sanity/codegen/package.json +++ b/packages/@sanity/codegen/package.json @@ -69,6 +69,7 @@ "devDependencies": { "@jest/globals": "^29.7.0", "@repo/package.config": "workspace:*", + "@repo/test-config": "workspace:*", "@types/babel__core": "^7.20.5", "@types/babel__generator": "^7.6.8", "@types/babel__register": "^7.17.3", diff --git a/packages/@sanity/schema/package.json b/packages/@sanity/schema/package.json index 382bafd4513..43009b4dbff 100644 --- a/packages/@sanity/schema/package.json +++ b/packages/@sanity/schema/package.json @@ -75,6 +75,7 @@ "devDependencies": { "@jest/globals": "^29.7.0", "@repo/package.config": "workspace:*", + "@repo/test-config": "workspace:*", "@sanity/icons": "^3.4.0", "@types/arrify": "^1.0.4", "@types/lodash": "^4.17.7", diff --git a/packages/@sanity/types/package.json b/packages/@sanity/types/package.json index 2450cd67916..49a0fa7eca1 100644 --- a/packages/@sanity/types/package.json +++ b/packages/@sanity/types/package.json @@ -55,6 +55,7 @@ "devDependencies": { "@jest/globals": "^29.7.0", "@repo/package.config": "workspace:*", + "@repo/test-config": "workspace:*", "@sanity/insert-menu": "1.0.9", "rimraf": "^3.0.2" } diff --git a/packages/@sanity/util/package.json b/packages/@sanity/util/package.json index 5a3c2672654..2ef5a52b59e 100644 --- a/packages/@sanity/util/package.json +++ b/packages/@sanity/util/package.json @@ -130,6 +130,7 @@ "devDependencies": { "@jest/globals": "^29.7.0", "@repo/package.config": "workspace:*", + "@repo/test-config": "workspace:*", "@types/moment": "^2.13.0", "rimraf": "^3.0.2" }, diff --git a/perf/tests/package.json b/perf/tests/package.json index eb645f63dd8..9acf198549f 100644 --- a/perf/tests/package.json +++ b/perf/tests/package.json @@ -27,6 +27,7 @@ }, "devDependencies": { "@jest/globals": "^29.7.0", + "@repo/test-config": "workspace:*", "@types/lodash": "^4.17.7", "@types/node": "^18.15.3", "esbuild": "0.21.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d37a639cc17..616f0b56db4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -81,9 +81,9 @@ importers: '@types/glob': specifier: ^7.2.0 version: 7.2.0 - '@types/lodash-es': + '@types/lodash': specifier: ^4.17.7 - version: 4.17.12 + version: 4.17.7 '@types/node': specifier: ^18.19.8 version: 18.19.50 @@ -195,7 +195,7 @@ importers: lint-staged: specifier: ^12.1.2 version: 12.5.0(enquirer@2.3.6) - lodash-es: + lodash: specifier: ^4.17.21 version: 4.17.21 minimist: @@ -670,6 +670,9 @@ importers: jest-environment-jsdom: specifier: ^29.7.0 version: 29.7.0 + lodash-es: + specifier: ^4.17.21 + version: 4.17.21 packages/@repo/test-exports: dependencies: @@ -740,6 +743,9 @@ importers: '@repo/package.config': specifier: workspace:* version: link:../../@repo/package.config + '@repo/test-config': + specifier: workspace:* + version: link:../../@repo/test-config '@sanity/schema': specifier: 3.57.4 version: link:../schema @@ -819,6 +825,9 @@ importers: '@repo/package.config': specifier: workspace:* version: link:../../@repo/package.config + '@repo/test-config': + specifier: workspace:* + version: link:../../@repo/test-config '@rexxars/gitconfiglocal': specifier: ^3.0.1 version: 3.0.1 @@ -1030,6 +1039,9 @@ importers: '@repo/package.config': specifier: workspace:* version: link:../../@repo/package.config + '@repo/test-config': + specifier: workspace:* + version: link:../../@repo/test-config '@types/babel__core': specifier: ^7.20.5 version: 7.20.5 @@ -1181,6 +1193,9 @@ importers: '@repo/package.config': specifier: workspace:* version: link:../../@repo/package.config + '@repo/test-config': + specifier: workspace:* + version: link:../../@repo/test-config '@sanity/icons': specifier: ^3.4.0 version: 3.4.0(react@19.0.0-rc-f994737d14-20240522) @@ -1215,6 +1230,9 @@ importers: '@repo/package.config': specifier: workspace:* version: link:../../@repo/package.config + '@repo/test-config': + specifier: workspace:* + version: link:../../@repo/test-config '@sanity/insert-menu': specifier: 1.0.9 version: 1.0.9(@sanity/types@packages+@sanity+types)(react-dom@19.0.0-rc-f994737d14-20240522(react@19.0.0-rc-f994737d14-20240522))(react-is@19.0.0-rc-a7d1240c-20240731)(react@19.0.0-rc-f994737d14-20240522)(styled-components@6.1.13(react-dom@19.0.0-rc-f994737d14-20240522(react@19.0.0-rc-f994737d14-20240522))(react@19.0.0-rc-f994737d14-20240522)) @@ -1246,6 +1264,9 @@ importers: '@repo/package.config': specifier: workspace:* version: link:../../@repo/package.config + '@repo/test-config': + specifier: workspace:* + version: link:../../@repo/test-config '@types/moment': specifier: ^2.13.0 version: 2.13.0 @@ -1996,6 +2017,9 @@ importers: '@jest/globals': specifier: ^29.7.0 version: 29.7.0 + '@repo/test-config': + specifier: workspace:* + version: link:../../packages/@repo/test-config '@types/lodash': specifier: ^4.17.7 version: 4.17.7