diff --git a/e2e-tests/tests/nuxt-3.test.ts b/e2e-tests/tests/nuxt-3.test.ts index 6e2dac34..d79ee318 100644 --- a/e2e-tests/tests/nuxt-3.test.ts +++ b/e2e-tests/tests/nuxt-3.test.ts @@ -50,7 +50,7 @@ async function runWizardOnNuxtProject(projectDir: string): Promise { // Selecting `yarn` as the package manager [KEYS.DOWN, KEYS.ENTER], // Do you want to install version 2.9.7 of nitropack and add an override to package.json? - 'Do you want to add an override for nitropack version 2.9.7?', + 'Do you want to add an override for nitropack version ~2.9.7?', { timeout: 240_000, }, diff --git a/e2e-tests/tests/nuxt-4.test.ts b/e2e-tests/tests/nuxt-4.test.ts index d8a9e2e5..b255d8cf 100644 --- a/e2e-tests/tests/nuxt-4.test.ts +++ b/e2e-tests/tests/nuxt-4.test.ts @@ -49,7 +49,7 @@ async function runWizardOnNuxtProject(projectDir: string): Promise { // Selecting `yarn` as the package manager [KEYS.DOWN, KEYS.ENTER], // Do you want to install version 2.9.7 of nitropack and add an override to package.json? - 'Do you want to add an override for nitropack version 2.9.7?', + 'Do you want to add an override for nitropack version ~2.9.7?', { timeout: 240_000, }, diff --git a/src/nuxt/sdk-setup.ts b/src/nuxt/sdk-setup.ts index 0545d2e1..c8df09d9 100644 --- a/src/nuxt/sdk-setup.ts +++ b/src/nuxt/sdk-setup.ts @@ -218,7 +218,7 @@ export async function addNuxtOverrides( const overrides = [ { pkgName: 'nitropack', - pkgVersion: '2.9.7', + pkgVersion: '~2.9.7', }, { pkgName: '@vercel/nft',