From c34c0b67fd635ae7b8d8dab5557ec5bdfc6d2741 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 21 Aug 2024 17:41:42 +0200 Subject: [PATCH] fix: use correct pinia version range Close vuejs/pinia#2748 --- packages/nuxt/package.json | 2 +- pnpm-lock.yaml | 2 +- scripts/release.mjs | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index a5ff008ce3..5b6f824e92 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -47,7 +47,7 @@ }, "dependencies": { "@nuxt/kit": "^3.9.0", - "pinia": "workspace:*" + "pinia": "workspace:^" }, "devDependencies": { "@nuxt/module-builder": "^0.8.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 33119fa65a..00ac5f23d8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,7 +139,7 @@ importers: specifier: ^3.9.0 version: 3.12.4(magicast@0.3.4)(rollup@4.19.0) pinia: - specifier: workspace:* + specifier: workspace:^ version: link:../pinia devDependencies: '@nuxt/module-builder': diff --git a/scripts/release.mjs b/scripts/release.mjs index 5eca9c544c..42146787ad 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -185,6 +185,13 @@ async function main() { }) ) + // TODO: we need to reorder packages based on dependencies + // pinia needs to be first + const piniaPkgIndx = packagesToRelease.find(({ name }) => name === 'pinia') + if (piniaPkgIndx > 0) { + packagesToRelease.unshift(packagesToRelease.splice(piniaPkgIndx, 1)[0]) + } + const { yes: isReleaseConfirmed } = await prompt({ type: 'confirm', name: 'yes',