From e62d1d3e38b37434e7faa667afe8caaad2b70f46 Mon Sep 17 00:00:00 2001 From: Jan Amann Date: Thu, 26 Sep 2024 12:19:54 +0200 Subject: [PATCH] chore: Use local versions correctly (#1372) See https://github.com/pnpm/pnpm/issues/5907 --- .npmrc | 2 + .../example-app-router-migration/package.json | 2 +- .../package.json | 2 +- .../example-app-router-next-auth/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- examples/example-app-router/package.json | 2 +- .../package.json | 2 +- .../example-pages-router-legacy/package.json | 2 +- examples/example-pages-router/package.json | 2 +- examples/example-remix/package.json | 2 +- examples/example-use-intl/package.json | 2 +- pnpm-lock.yaml | 93 ++++++------------- 14 files changed, 41 insertions(+), 78 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..6c2b9be4c --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +link-workspace-packages=true +prefer-workspace-packages=true diff --git a/examples/example-app-router-migration/package.json b/examples/example-app-router-migration/package.json index 2b8fce30e..0e893611b 100644 --- a/examples/example-app-router-migration/package.json +++ b/examples/example-app-router-migration/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "next": "^14.2.4", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/examples/example-app-router-mixed-routing/package.json b/examples/example-app-router-mixed-routing/package.json index a275aeeaa..bb68d9109 100644 --- a/examples/example-app-router-mixed-routing/package.json +++ b/examples/example-app-router-mixed-routing/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "next": "^14.2.4", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", "tailwindcss": "^3.4.4" diff --git a/examples/example-app-router-next-auth/package.json b/examples/example-app-router-next-auth/package.json index 9b467d444..e1cb4f5a6 100644 --- a/examples/example-app-router-next-auth/package.json +++ b/examples/example-app-router-next-auth/package.json @@ -11,7 +11,7 @@ "dependencies": { "next": "^14.2.4", "next-auth": "^4.24.7", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/examples/example-app-router-playground/package.json b/examples/example-app-router-playground/package.json index cdbc301d6..26011a00f 100644 --- a/examples/example-app-router-playground/package.json +++ b/examples/example-app-router-playground/package.json @@ -18,7 +18,7 @@ "lodash": "^4.17.21", "ms": "2.1.3", "next": "^14.2.4", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", "zod": "^3.23.8" diff --git a/examples/example-app-router-single-locale/package.json b/examples/example-app-router-single-locale/package.json index 7c3368aec..7ae34d129 100644 --- a/examples/example-app-router-single-locale/package.json +++ b/examples/example-app-router-single-locale/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "next": "^14.2.4", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/examples/example-app-router-without-i18n-routing/package.json b/examples/example-app-router-without-i18n-routing/package.json index dc6e6820c..f8ab6a6ab 100644 --- a/examples/example-app-router-without-i18n-routing/package.json +++ b/examples/example-app-router-without-i18n-routing/package.json @@ -14,7 +14,7 @@ "clsx": "^2.1.1", "lodash": "^4.17.21", "next": "^14.2.4", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", "zod": "^3.23.8" diff --git a/examples/example-app-router/package.json b/examples/example-app-router/package.json index f118d7e4c..2df4986c2 100644 --- a/examples/example-app-router/package.json +++ b/examples/example-app-router/package.json @@ -13,7 +13,7 @@ "dependencies": { "clsx": "^2.1.1", "next": "^14.2.4", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", "tailwindcss": "^3.4.4" diff --git a/examples/example-pages-router-advanced/package.json b/examples/example-pages-router-advanced/package.json index 0cf941b83..1e7ffea8e 100644 --- a/examples/example-pages-router-advanced/package.json +++ b/examples/example-pages-router-advanced/package.json @@ -12,7 +12,7 @@ "accept-language-parser": "^1.5.0", "lodash": "^4.17.21", "next": "^14.2.4", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/examples/example-pages-router-legacy/package.json b/examples/example-pages-router-legacy/package.json index d0110a84f..d9def5fa0 100644 --- a/examples/example-pages-router-legacy/package.json +++ b/examples/example-pages-router-legacy/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "next": "^12.0.0", - "use-intl": "latest", + "use-intl": "^3.0.0", "react": "^17.0.0", "react-dom": "^17.0.0" }, diff --git a/examples/example-pages-router/package.json b/examples/example-pages-router/package.json index 7093cc6bf..63bedc263 100644 --- a/examples/example-pages-router/package.json +++ b/examples/example-pages-router/package.json @@ -11,7 +11,7 @@ "dependencies": { "date-fns": "^3.6.0", "next": "^14.2.4", - "next-intl": "latest", + "next-intl": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/examples/example-remix/package.json b/examples/example-remix/package.json index 0f75551ed..d5a360205 100644 --- a/examples/example-remix/package.json +++ b/examples/example-remix/package.json @@ -17,7 +17,7 @@ "isbot": "^5.1.9", "react": "^18.3.1", "react-dom": "^18.3.1", - "use-intl": "latest" + "use-intl": "^3.0.0" }, "devDependencies": { "@remix-run/dev": "^2.9.2", diff --git a/examples/example-use-intl/package.json b/examples/example-use-intl/package.json index 1cbbc0458..16629451f 100644 --- a/examples/example-use-intl/package.json +++ b/examples/example-use-intl/package.json @@ -11,7 +11,7 @@ "dependencies": { "react": "^18.3.1", "react-dom": "^18.3.1", - "use-intl": "latest" + "use-intl": "^3.0.0" }, "devDependencies": { "@types/react": "^18.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 24c531336..dd8c09cd7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -133,8 +133,8 @@ importers: specifier: ^14.2.4 version: 14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -197,8 +197,8 @@ importers: specifier: ^14.2.4 version: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -234,8 +234,8 @@ importers: specifier: ^14.2.4 version: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -283,8 +283,8 @@ importers: specifier: ^4.24.7 version: 4.24.7(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -332,8 +332,8 @@ importers: specifier: ^14.2.4 version: 14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -415,7 +415,7 @@ importers: version: 8.2.9(@babel/preset-env@7.24.8(@babel/core@7.24.8)) storybook-next-intl: specifier: ^1.1.4 - version: 1.1.4(next-intl@3.20.0(next@14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)) + version: 1.1.4(next-intl@packages+next-intl) typescript: specifier: ^5.5.3 version: 5.5.3 @@ -426,8 +426,8 @@ importers: specifier: ^14.2.4 version: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -478,8 +478,8 @@ importers: specifier: ^14.2.4 version: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -536,8 +536,8 @@ importers: specifier: ^14.2.4 version: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -579,8 +579,8 @@ importers: specifier: ^14.2.4 version: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-intl: - specifier: latest - version: 3.20.0(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/next-intl react: specifier: ^18.3.1 version: 18.3.1 @@ -637,8 +637,8 @@ importers: specifier: ^17.0.0 version: 17.0.2(react@17.0.2) use-intl: - specifier: latest - version: 3.20.0(react@17.0.2) + specifier: ^3.0.0 + version: link:../../packages/use-intl devDependencies: eslint: specifier: ^8.56.0 @@ -705,8 +705,8 @@ importers: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) use-intl: - specifier: latest - version: 3.20.0(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/use-intl devDependencies: '@remix-run/dev': specifier: ^2.9.2 @@ -739,8 +739,8 @@ importers: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) use-intl: - specifier: latest - version: 3.20.0(react@18.3.1) + specifier: ^3.0.0 + version: link:../../packages/use-intl devDependencies: '@types/react': specifier: ^18.3.3 @@ -10420,12 +10420,6 @@ packages: nodemailer: optional: true - next-intl@3.20.0: - resolution: {integrity: sha512-0bCZcc38HfAZk/T+PNNcnJZknC+caS5rBK+WYRd1HsOL5O6puEu2H3kya8oT9s8piHjrTf7P0UHeahOFleOnrw==} - peerDependencies: - next: ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - next-mdx-remote@4.4.1: resolution: {integrity: sha512-1BvyXaIou6xy3XoNF4yaMZUCb6vD2GTAa5ciOa6WoO+gAUTYsb1K4rI/HSC2ogAWLrb/7VSV52skz07vOzmqIQ==} engines: {node: '>=14', npm: '>=7'} @@ -13735,11 +13729,6 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 - use-intl@3.20.0: - resolution: {integrity: sha512-5WQs6yZVWI9K7vw3134P0bhKNp4mi8NbmqKOCuhD9nQUMTKdmpBXwjk62+axwvEbj4XrZxj4X93mQMLXU5ZsCg==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - use-sidecar@1.1.2: resolution: {integrity: sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==} engines: {node: '>=10'} @@ -28382,22 +28371,6 @@ snapshots: react-dom: 18.3.1(react@18.3.1) uuid: 8.3.2 - next-intl@3.20.0(next@14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1): - dependencies: - '@formatjs/intl-localematcher': 0.5.4 - negotiator: 0.6.3 - next: 14.2.4(@babel/core@7.24.7)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react: 18.3.1 - use-intl: 3.20.0(react@18.3.1) - - next-intl@3.20.0(next@14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1): - dependencies: - '@formatjs/intl-localematcher': 0.5.4 - negotiator: 0.6.3 - next: 14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react: 18.3.1 - use-intl: 3.20.0(react@18.3.1) - next-mdx-remote@4.4.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@mdx-js/mdx': 2.3.0 @@ -31246,9 +31219,9 @@ snapshots: storybook-i18n@3.1.1: {} - storybook-next-intl@1.1.4(next-intl@3.20.0(next@14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)): + storybook-next-intl@1.1.4(next-intl@packages+next-intl): dependencies: - next-intl: 3.20.0(next@14.2.4(@babel/core@7.24.8)(@playwright/test@1.44.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + next-intl: link:packages/next-intl storybook-i18n: 3.1.1 storybook@8.2.9(@babel/preset-env@7.24.8(@babel/core@7.24.8)): @@ -32388,18 +32361,6 @@ snapshots: intl-messageformat: 9.3.18 react: 18.1.0 - use-intl@3.20.0(react@17.0.2): - dependencies: - '@formatjs/fast-memoize': 2.2.0 - intl-messageformat: 10.5.14 - react: 17.0.2 - - use-intl@3.20.0(react@18.3.1): - dependencies: - '@formatjs/fast-memoize': 2.2.0 - intl-messageformat: 10.5.14 - react: 18.3.1 - use-sidecar@1.1.2(@types/react@18.3.3)(react@18.3.1): dependencies: detect-node-es: 1.1.0