From d0830cfe256fbfe8b6c0db442262e9d492445577 Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 23 Oct 2024 11:05:03 +0200 Subject: [PATCH] Make sure Next 14 is used for sandboxes --- .github/workflows/generate-sandboxes.yml | 112 +++++----- code/core/template/stories/hooks.stories.ts | 1 + .../custom-pipes.stories.ts | 2 + .../ng-module/import-module-chip.stories.ts | 2 + .../import-module-for-root.stories.ts | 2 + .../basics/ng-module/import-module.stories.ts | 2 + code/frameworks/svelte-vite/package.json | 8 +- code/frameworks/svelte-webpack5/package.json | 6 +- code/frameworks/sveltekit/package.json | 2 +- .../cli-storybook/src/sandbox-templates.ts | 6 +- .../src/scaffold-new-project.ts | 7 +- code/presets/svelte-webpack/package.json | 6 +- code/renderers/svelte/package.json | 8 +- code/yarn.lock | 199 ++++++++---------- scripts/utils/yarn.ts | 3 +- 15 files changed, 178 insertions(+), 188 deletions(-) diff --git a/.github/workflows/generate-sandboxes.yml b/.github/workflows/generate-sandboxes.yml index 09ab43d53601..dad7066c0614 100644 --- a/.github/workflows/generate-sandboxes.yml +++ b/.github/workflows/generate-sandboxes.yml @@ -6,9 +6,9 @@ on: workflow_dispatch: # To test fixes on push rather than wait for the scheduling, do the following: # 1. Uncomment the lines below and add your branch. - # push: - # branches: - # - + push: + branches: + - kasper/fix-sandboxes-next # 2. Change the "ref" value to in the actions/checkout step below. # 3. Comment out the whole "generate-main" job starting at line 77 # 4. 👉 DON'T FORGET TO UNDO THE STEPS BEFORE YOU MERGE YOUR CHANGES! @@ -28,8 +28,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: next - + ref: kasper/fix-sandboxes-next + - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" @@ -74,54 +74,54 @@ jobs: The generation of some or all sandboxes on the **next** branch has failed. [See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) - generate-main: - name: Generate to main - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - ref: main - - - uses: actions/setup-node@v4 - with: - node-version-file: ".nvmrc" - - - name: Setup git user - run: | - git config --global user.name "storybook-bot" - git config --global user.email "32066757+storybook-bot@users.noreply.github.com" - - - name: Install dependencies - working-directory: ./scripts - run: node --experimental-modules ./check-dependencies.js - - - name: Compile Storybook libraries - run: yarn task --task compile --start-from=auto --no-link - - - name: Publish to local registry - run: yarn local-registry --publish - - - name: Run local registry - run: yarn local-registry --open & - - - name: Wait for registry - run: yarn wait-on tcp:127.0.0.1:6001 - - - name: Generate - id: generate - run: yarn generate-sandboxes --local-registry - - - name: Publish - # publish sandboxes even if the generation fails, as some sandboxes might have been generated successfully - if: ${{ !cancelled() }} - run: yarn publish-sandboxes --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT }}@github.com/storybookjs/sandboxes.git --push --branch=main - - - name: Report failure to Discord - if: failure() - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_MONITORING_URL }} - uses: Ilshidur/action-discord@master - with: - args: | - The generation of some or all sandboxes on the **main** branch has failed. - [See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) +# generate-main: +# name: Generate to main +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# with: +# ref: main +# +# - uses: actions/setup-node@v4 +# with: +# node-version-file: ".nvmrc" +# +# - name: Setup git user +# run: | +# git config --global user.name "storybook-bot" +# git config --global user.email "32066757+storybook-bot@users.noreply.github.com" +# +# - name: Install dependencies +# working-directory: ./scripts +# run: node --experimental-modules ./check-dependencies.js +# +# - name: Compile Storybook libraries +# run: yarn task --task compile --start-from=auto --no-link +# +# - name: Publish to local registry +# run: yarn local-registry --publish +# +# - name: Run local registry +# run: yarn local-registry --open & +# +# - name: Wait for registry +# run: yarn wait-on tcp:127.0.0.1:6001 +# +# - name: Generate +# id: generate +# run: yarn generate-sandboxes --local-registry +# +# - name: Publish +# # publish sandboxes even if the generation fails, as some sandboxes might have been generated successfully +# if: ${{ !cancelled() }} +# run: yarn publish-sandboxes --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT }}@github.com/storybookjs/sandboxes.git --push --branch=main +# +# - name: Report failure to Discord +# if: failure() +# env: +# DISCORD_WEBHOOK: ${{ secrets.DISCORD_MONITORING_URL }} +# uses: Ilshidur/action-discord@master +# with: +# args: | +# The generation of some or all sandboxes on the **main** branch has failed. +# [See the job summary for details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) diff --git a/code/core/template/stories/hooks.stories.ts b/code/core/template/stories/hooks.stories.ts index ce145288f147..e7db5fa56a03 100644 --- a/code/core/template/stories/hooks.stories.ts +++ b/code/core/template/stories/hooks.stories.ts @@ -6,6 +6,7 @@ import { useEffect, useState } from '@storybook/core/preview-api'; export default { component: globalThis.Components.Button, + tags: ['!vitest'], }; export const UseState = { diff --git a/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts index 9a4a8e53c577..1c83974691d0 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts @@ -11,6 +11,8 @@ const meta: Meta = { declarations: [CustomPipePipe], }), ], + tags: ['!test', '!vitest'], + parameters: { chromatic: { disable: true } }, }; export default meta; diff --git a/code/frameworks/angular/template/stories/basics/ng-module/import-module-chip.stories.ts b/code/frameworks/angular/template/stories/basics/ng-module/import-module-chip.stories.ts index e1a53bb49cf6..c31db80a8dfa 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/import-module-chip.stories.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/import-module-chip.stories.ts @@ -10,6 +10,8 @@ const meta: Meta = { imports: [ChipsModule], }), ], + tags: ['!test', '!vitest'], + parameters: { chromatic: { disable: true } }, }; export default meta; diff --git a/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts b/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts index 73ef9915d437..f3768cc7d3da 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts @@ -28,6 +28,8 @@ const meta: Meta = { removeChipClick: { action: 'Remove chip' }, removeAllChipsClick: { action: 'Remove all chips clicked' }, }, + tags: ['!test', '!vitest'], + parameters: { chromatic: { disable: true } }, }; export default meta; diff --git a/code/frameworks/angular/template/stories/basics/ng-module/import-module.stories.ts b/code/frameworks/angular/template/stories/basics/ng-module/import-module.stories.ts index b82541424db0..e13c48a43389 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/import-module.stories.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/import-module.stories.ts @@ -11,6 +11,8 @@ const meta: Meta = { imports: [ChipsModule], }), ], + tags: ['!test', '!vitest'], + parameters: { chromatic: { disable: true } }, }; export default meta; diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index 9a3aa0095160..4aa937d61e09 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -55,16 +55,16 @@ "ts-dedent": "^2.2.0" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^3.0.1", + "@sveltejs/vite-plugin-svelte": "^4.0.0", "@types/node": "^22.0.0", - "svelte": "^5.0.0-next.268", + "svelte": "^5.0.5", "typescript": "^5.3.2", "vite": "^4.0.0" }, "peerDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.0.0 || ^3.0.0", + "@sveltejs/vite-plugin-svelte": "^2.0.0 || ^3.0.0 || ^4.0.0", "storybook": "workspace:^", - "svelte": "^4.0.0 || ^5.0.0-next.65", + "svelte": "^4.0.0 || ^5.0.0", "vite": "^4.0.0 || ^5.0.0" }, "engines": { diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index 26a456140246..a811cca65216 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/package.json @@ -52,13 +52,13 @@ "@storybook/svelte": "workspace:*" }, "devDependencies": { - "svelte": "^4.0.0", - "svelte-loader": "^3.1.9", + "svelte": "^5.0.5", + "svelte-loader": "^3.2.4", "typescript": "^5.3.2" }, "peerDependencies": { "storybook": "workspace:^", - "svelte": "^4.0.0 || ^5.0.0-next.65", + "svelte": "^4.0.0 || ^5.0.0", "svelte-loader": "*" }, "engines": { diff --git a/code/frameworks/sveltekit/package.json b/code/frameworks/sveltekit/package.json index 07d5525969c6..07f6fccac157 100644 --- a/code/frameworks/sveltekit/package.json +++ b/code/frameworks/sveltekit/package.json @@ -70,7 +70,7 @@ }, "peerDependencies": { "storybook": "workspace:^", - "svelte": "^4.0.0 || ^5.0.0-next.65", + "svelte": "^4.0.0 || ^5.0.0", "vite": "^4.0.0 || ^5.0.0" }, "engines": { diff --git a/code/lib/cli-storybook/src/sandbox-templates.ts b/code/lib/cli-storybook/src/sandbox-templates.ts index 86ab09d2b6a4..bf38070e0161 100644 --- a/code/lib/cli-storybook/src/sandbox-templates.ts +++ b/code/lib/cli-storybook/src/sandbox-templates.ts @@ -159,7 +159,7 @@ const baseTemplates = { 'nextjs/default-js': { name: 'Next.js Latest (Webpack | JavaScript)', script: - 'yarn create next-app {{beforeDir}} --javascript --eslint --tailwind --app --import-alias="@/*" --src-dir', + 'npx create-next-app@^14 {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir', expected: { framework: '@storybook/nextjs', renderer: '@storybook/react', @@ -176,7 +176,7 @@ const baseTemplates = { 'nextjs/default-ts': { name: 'Next.js Latest (Webpack | TypeScript)', script: - 'yarn create next-app {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir', + 'npx create-next-app@^14 {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir', expected: { framework: '@storybook/nextjs', renderer: '@storybook/react', @@ -210,7 +210,7 @@ const baseTemplates = { 'experimental-nextjs-vite/default-ts': { name: 'Next.js Latest (Vite | TypeScript)', script: - 'yarn create next-app {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir', + 'npx create-next-app@^14 {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir', expected: { framework: '@storybook/experimental-nextjs-vite', renderer: '@storybook/react', diff --git a/code/lib/create-storybook/src/scaffold-new-project.ts b/code/lib/create-storybook/src/scaffold-new-project.ts index c07ff8c9fba4..2ece91bfc008 100644 --- a/code/lib/create-storybook/src/scaffold-new-project.ts +++ b/code/lib/create-storybook/src/scaffold-new-project.ts @@ -46,9 +46,10 @@ const SUPPORTED_PROJECTS: Record = { language: 'TS', }, createScript: { - npm: 'npm create next-app . -- --typescript --use-npm --eslint --tailwind --no-app --import-alias="@/*" --src-dir', - yarn: 'yarn create next-app . --typescript --use-yarn --eslint --tailwind --no-app --import-alias="@/*" --src-dir', - pnpm: 'pnpm create next-app . --typescript --use-pnpm --eslint --tailwind --no-app --import-alias="@/*" --src-dir', + npm: 'npm create next-app@^14 . -- --typescript --use-npm --eslint --tailwind --no-app --import-alias="@/*" --src-dir', + // yarn doesn't support version ranges, so we have to use npx + yarn: 'npx create-next-app@^14 . --typescript --use-yarn --eslint --tailwind --no-app --import-alias="@/*" --src-dir', + pnpm: 'pnpm create next-app^14 . --typescript --use-pnpm --eslint --tailwind --no-app --import-alias="@/*" --src-dir', }, }, 'vue-vite-ts': { diff --git a/code/presets/svelte-webpack/package.json b/code/presets/svelte-webpack/package.json index 88c0bbad8a74..db7d9e620aca 100644 --- a/code/presets/svelte-webpack/package.json +++ b/code/presets/svelte-webpack/package.json @@ -69,13 +69,13 @@ "ts-dedent": "^2.0.0" }, "devDependencies": { - "svelte": "^4.0.0", - "svelte-loader": "^3.1.9", + "svelte": "^5.0.0", + "svelte-loader": "^3.2.4", "typescript": "^5.3.2" }, "peerDependencies": { "storybook": "workspace:^", - "svelte": "^4.0.0 || ^5.0.0-next.65", + "svelte": "^4.0.0 || ^5.0.0", "svelte-loader": "*" }, "engines": { diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index fc1aa59d7ab3..f611e8a8c41f 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -65,16 +65,16 @@ "type-fest": "~2.19" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^3.0.2", - "@testing-library/svelte": "^5.2.3", + "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@testing-library/svelte": "^5.2.4", "expect-type": "^0.15.0", - "svelte": "^5.0.0-next.268", + "svelte": "^5.0.5", "svelte-check": "^4.0.5", "typescript": "^5.3.2" }, "peerDependencies": { "storybook": "workspace:^", - "svelte": "^4.0.0 || ^5.0.0-next.65" + "svelte": "^4.0.0 || ^5.0.0" }, "engines": { "node": ">=18.0.0" diff --git a/code/yarn.lock b/code/yarn.lock index 61e3e672ce05..7697bd6ed744 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -19,7 +19,7 @@ __metadata: languageName: node linkType: hard -"@ampproject/remapping@npm:2.3.0, @ampproject/remapping@npm:^2.2.0, @ampproject/remapping@npm:^2.2.1, @ampproject/remapping@npm:^2.3.0": +"@ampproject/remapping@npm:2.3.0, @ampproject/remapping@npm:^2.2.0, @ampproject/remapping@npm:^2.3.0": version: 2.3.0 resolution: "@ampproject/remapping@npm:2.3.0" dependencies: @@ -3747,7 +3747,7 @@ __metadata: languageName: node linkType: hard -"@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.18, @jridgewell/trace-mapping@npm:^0.3.20, @jridgewell/trace-mapping@npm:^0.3.23, @jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25, @jridgewell/trace-mapping@npm:^0.3.9": +"@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.20, @jridgewell/trace-mapping@npm:^0.3.23, @jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25, @jridgewell/trace-mapping@npm:^0.3.9": version: 0.3.25 resolution: "@jridgewell/trace-mapping@npm:0.3.25" dependencies: @@ -6613,14 +6613,14 @@ __metadata: resolution: "@storybook/preset-svelte-webpack@workspace:presets/svelte-webpack" dependencies: "@storybook/core-webpack": "workspace:*" - svelte: "npm:^4.0.0" - svelte-loader: "npm:^3.1.9" + svelte: "npm:^5.0.0" + svelte-loader: "npm:^3.2.4" sveltedoc-parser: "npm:^4.2.1" ts-dedent: "npm:^2.0.0" typescript: "npm:^5.3.2" peerDependencies: storybook: "workspace:^" - svelte: ^4.0.0 || ^5.0.0-next.65 + svelte: ^4.0.0 || ^5.0.0 svelte-loader: "*" languageName: unknown linkType: soft @@ -6995,19 +6995,19 @@ __metadata: dependencies: "@storybook/builder-vite": "workspace:*" "@storybook/svelte": "workspace:*" - "@sveltejs/vite-plugin-svelte": "npm:^3.0.1" + "@sveltejs/vite-plugin-svelte": "npm:^4.0.0" "@types/node": "npm:^22.0.0" magic-string: "npm:^0.30.0" - svelte: "npm:^5.0.0-next.268" + svelte: "npm:^5.0.5" svelte-preprocess: "npm:^5.1.1" sveltedoc-parser: "npm:^4.2.1" ts-dedent: "npm:^2.2.0" typescript: "npm:^5.3.2" vite: "npm:^4.0.0" peerDependencies: - "@sveltejs/vite-plugin-svelte": ^2.0.0 || ^3.0.0 + "@sveltejs/vite-plugin-svelte": ^2.0.0 || ^3.0.0 || ^4.0.0 storybook: "workspace:^" - svelte: ^4.0.0 || ^5.0.0-next.65 + svelte: ^4.0.0 || ^5.0.0 vite: ^4.0.0 || ^5.0.0 languageName: unknown linkType: soft @@ -7019,12 +7019,12 @@ __metadata: "@storybook/builder-webpack5": "workspace:*" "@storybook/preset-svelte-webpack": "workspace:*" "@storybook/svelte": "workspace:*" - svelte: "npm:^4.0.0" - svelte-loader: "npm:^3.1.9" + svelte: "npm:^5.0.5" + svelte-loader: "npm:^3.2.4" typescript: "npm:^5.3.2" peerDependencies: storybook: "workspace:^" - svelte: ^4.0.0 || ^5.0.0-next.65 + svelte: ^4.0.0 || ^5.0.0 svelte-loader: "*" languageName: unknown linkType: soft @@ -7038,10 +7038,10 @@ __metadata: "@storybook/manager-api": "workspace:^" "@storybook/preview-api": "workspace:^" "@storybook/theming": "workspace:^" - "@sveltejs/vite-plugin-svelte": "npm:^3.0.2" - "@testing-library/svelte": "npm:^5.2.3" + "@sveltejs/vite-plugin-svelte": "npm:^4.0.0" + "@testing-library/svelte": "npm:^5.2.4" expect-type: "npm:^0.15.0" - svelte: "npm:^5.0.0-next.268" + svelte: "npm:^5.0.5" svelte-check: "npm:^4.0.5" sveltedoc-parser: "npm:^4.2.1" ts-dedent: "npm:^2.0.0" @@ -7049,7 +7049,7 @@ __metadata: typescript: "npm:^5.3.2" peerDependencies: storybook: "workspace:^" - svelte: ^4.0.0 || ^5.0.0-next.65 + svelte: ^4.0.0 || ^5.0.0 languageName: unknown linkType: soft @@ -7066,7 +7066,7 @@ __metadata: vite: "npm:^4.0.0" peerDependencies: storybook: "workspace:^" - svelte: ^4.0.0 || ^5.0.0-next.65 + svelte: ^4.0.0 || ^5.0.0 vite: ^4.0.0 || ^5.0.0 languageName: unknown linkType: soft @@ -7244,34 +7244,33 @@ __metadata: languageName: unknown linkType: soft -"@sveltejs/vite-plugin-svelte-inspector@npm:^2.0.0": - version: 2.0.0 - resolution: "@sveltejs/vite-plugin-svelte-inspector@npm:2.0.0" +"@sveltejs/vite-plugin-svelte-inspector@npm:^3.0.0-next.0||^3.0.0": + version: 3.0.0 + resolution: "@sveltejs/vite-plugin-svelte-inspector@npm:3.0.0" dependencies: - debug: "npm:^4.3.4" + debug: "npm:^4.3.7" peerDependencies: - "@sveltejs/vite-plugin-svelte": ^3.0.0 - svelte: ^4.0.0 || ^5.0.0-next.0 + "@sveltejs/vite-plugin-svelte": ^4.0.0-next.0||^4.0.0 + svelte: ^5.0.0-next.96 || ^5.0.0 vite: ^5.0.0 - checksum: 10c0/7c3b8159b819485a54de726591bf89d53e641d6b3961ea2100b1908c6e68e08d887a07890d16daee9e63b4781c629469ef72d504351bc0d125b3720faf420920 + checksum: 10c0/f400758f698394a8e0c6641454ffd85d5c61f8bf50626fddaa688172f3b910a4840882380782e844e54464a7491fcc61bf0e6b1b8f898cdfe3696bcf0e774159 languageName: node linkType: hard -"@sveltejs/vite-plugin-svelte@npm:^3.0.1, @sveltejs/vite-plugin-svelte@npm:^3.0.2": - version: 3.0.2 - resolution: "@sveltejs/vite-plugin-svelte@npm:3.0.2" +"@sveltejs/vite-plugin-svelte@npm:^4.0.0": + version: 4.0.0 + resolution: "@sveltejs/vite-plugin-svelte@npm:4.0.0" dependencies: - "@sveltejs/vite-plugin-svelte-inspector": "npm:^2.0.0" - debug: "npm:^4.3.4" + "@sveltejs/vite-plugin-svelte-inspector": "npm:^3.0.0-next.0||^3.0.0" + debug: "npm:^4.3.7" deepmerge: "npm:^4.3.1" kleur: "npm:^4.1.5" - magic-string: "npm:^0.30.5" - svelte-hmr: "npm:^0.15.3" - vitefu: "npm:^0.2.5" + magic-string: "npm:^0.30.12" + vitefu: "npm:^1.0.3" peerDependencies: - svelte: ^4.0.0 || ^5.0.0-next.0 + svelte: ^5.0.0-next.96 || ^5.0.0 vite: ^5.0.0 - checksum: 10c0/7150877f61b65a51d55916fccacb7851859b0aab9c7e4f591c98b6775a7e55f5410cc854add4c427f99978f115a92ac75f116a813b67814cc7801daac1b78439 + checksum: 10c0/6c8ea6bd3ccd567cb8e9e9ac75782f904fa8a5c238e5b1c748cb7d4b4213390f70ca9a41f0be0a49dc373bc648fed6cfa4eb1882793ece1e1cfec646e847b1b1 languageName: node linkType: hard @@ -7401,9 +7400,9 @@ __metadata: languageName: node linkType: hard -"@testing-library/svelte@npm:^5.2.3": - version: 5.2.3 - resolution: "@testing-library/svelte@npm:5.2.3" +"@testing-library/svelte@npm:^5.2.4": + version: 5.2.4 + resolution: "@testing-library/svelte@npm:5.2.4" dependencies: "@testing-library/dom": "npm:^10.0.0" peerDependencies: @@ -7415,7 +7414,7 @@ __metadata: optional: true vitest: optional: true - checksum: 10c0/a83d662ee7a0ce901598bd985b8d6afde72c7aa37f22447078bd38c7ec9df6b3fb15464d3f171726479a65f0e562732526686b6a33d6b2c7fd34edb6e7b706a9 + checksum: 10c0/c0fcefa208248187e6a0d8fb9d2d42e96eb9382119357099a0ff730db9f056e39ad306ccf8e25fac273228b52d2d02f1c5e5aa3f7782f3a86bb2f2b6ee897752 languageName: node linkType: hard @@ -9575,7 +9574,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.0.0, acorn@npm:^8.10.0, acorn@npm:^8.11.2, acorn@npm:^8.12.1, acorn@npm:^8.4.1, acorn@npm:^8.6.0, acorn@npm:^8.7.1, acorn@npm:^8.8.2, acorn@npm:^8.9.0": +"acorn@npm:^8.0.0, acorn@npm:^8.11.2, acorn@npm:^8.12.1, acorn@npm:^8.4.1, acorn@npm:^8.6.0, acorn@npm:^8.7.1, acorn@npm:^8.8.2, acorn@npm:^8.9.0": version: 8.12.1 resolution: "acorn@npm:8.12.1" bin: @@ -11832,19 +11831,6 @@ __metadata: languageName: node linkType: hard -"code-red@npm:^1.0.3": - version: 1.0.4 - resolution: "code-red@npm:1.0.4" - dependencies: - "@jridgewell/sourcemap-codec": "npm:^1.4.15" - "@types/estree": "npm:^1.0.1" - acorn: "npm:^8.10.0" - estree-walker: "npm:^3.0.3" - periscopic: "npm:^3.1.0" - checksum: 10c0/1309f062369ae520c422d7f45b93190faea2cbc7e3fe3375918f36bb394030d0936d940601426564c30abc71b8aa8e6d1505cccd67a8620183fb01c84bcb7304 - languageName: node - linkType: hard - "collapse-white-space@npm:^2.0.0": version: 2.1.0 resolution: "collapse-white-space@npm:2.1.0" @@ -12562,16 +12548,6 @@ __metadata: languageName: node linkType: hard -"css-tree@npm:^2.3.1": - version: 2.3.1 - resolution: "css-tree@npm:2.3.1" - dependencies: - mdn-data: "npm:2.0.30" - source-map-js: "npm:^1.0.1" - checksum: 10c0/6f8c1a11d5e9b14bf02d10717fc0351b66ba12594166f65abfbd8eb8b5b490dd367f5c7721db241a3c792d935fc6751fbc09f7e1598d421477ad9fadc30f4f24 - languageName: node - linkType: hard - "css-what@npm:^6.0.1, css-what@npm:^6.1.0": version: 6.1.0 resolution: "css-what@npm:6.1.0" @@ -12771,6 +12747,18 @@ __metadata: languageName: node linkType: hard +"debug@npm:^4.3.7": + version: 4.3.7 + resolution: "debug@npm:4.3.7" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10c0/1471db19c3b06d485a622d62f65947a19a23fbd0dd73f7fd3eafb697eec5360cde447fb075919987899b1a2096e85d35d4eb5a4de09a57600ac9cf7e6c8e768b + languageName: node + linkType: hard + "decamelize@npm:^1.2.0": version: 1.2.0 resolution: "decamelize@npm:1.2.0" @@ -17872,7 +17860,7 @@ __metadata: languageName: node linkType: hard -"is-reference@npm:^3.0.0, is-reference@npm:^3.0.1, is-reference@npm:^3.0.2": +"is-reference@npm:^3.0.0, is-reference@npm:^3.0.2": version: 3.0.2 resolution: "is-reference@npm:3.0.2" dependencies: @@ -19344,7 +19332,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.0, magic-string@npm:^0.30.10, magic-string@npm:^0.30.11, magic-string@npm:^0.30.4, magic-string@npm:^0.30.5": +"magic-string@npm:^0.30.0, magic-string@npm:^0.30.10, magic-string@npm:^0.30.11, magic-string@npm:^0.30.5": version: 0.30.11 resolution: "magic-string@npm:0.30.11" dependencies: @@ -19353,6 +19341,15 @@ __metadata: languageName: node linkType: hard +"magic-string@npm:^0.30.12": + version: 0.30.12 + resolution: "magic-string@npm:0.30.12" + dependencies: + "@jridgewell/sourcemap-codec": "npm:^1.5.0" + checksum: 10c0/469f457d18af37dfcca8617086ea8a65bcd8b60ba8a1182cb024ce43e470ace3c9d1cb6bee58d3b311768fb16bc27bd50bdeebcaa63dadd0fd46cac4d2e11d5f + languageName: node + linkType: hard + "magicast@npm:^0.3.4": version: 0.3.4 resolution: "magicast@npm:0.3.4" @@ -19833,13 +19830,6 @@ __metadata: languageName: node linkType: hard -"mdn-data@npm:2.0.30": - version: 2.0.30 - resolution: "mdn-data@npm:2.0.30" - checksum: 10c0/a2c472ea16cee3911ae742593715aa4c634eb3d4b9f1e6ada0902aa90df13dcbb7285d19435f3ff213ebaa3b2e0c0265c1eb0e3fb278fda7f8919f046a410cd9 - languageName: node - linkType: hard - "media-typer@npm:0.3.0": version: 0.3.0 resolution: "media-typer@npm:0.3.0" @@ -20991,7 +20981,7 @@ __metadata: languageName: node linkType: hard -"ms@npm:2.1.3, ms@npm:^2.0.0, ms@npm:^2.1.1": +"ms@npm:2.1.3, ms@npm:^2.0.0, ms@npm:^2.1.1, ms@npm:^2.1.3": version: 2.1.3 resolution: "ms@npm:2.1.3" checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48 @@ -22527,7 +22517,7 @@ __metadata: languageName: node linkType: hard -"periscopic@npm:^3.0.0, periscopic@npm:^3.1.0": +"periscopic@npm:^3.0.0": version: 3.1.0 resolution: "periscopic@npm:3.1.0" dependencies: @@ -25872,7 +25862,7 @@ __metadata: languageName: node linkType: hard -"source-map-js@npm:>=0.6.2 <2.0.0, source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2, source-map-js@npm:^1.2.0": +"source-map-js@npm:>=0.6.2 <2.0.0, source-map-js@npm:^1.0.2, source-map-js@npm:^1.2.0": version: 1.2.0 resolution: "source-map-js@npm:1.2.0" checksum: 10c0/7e5f896ac10a3a50fe2898e5009c58ff0dc102dcb056ed27a354623a0ece8954d4b2649e1a1b2b52ef2e161d26f8859c7710350930751640e71e374fe2d321a4 @@ -26616,25 +26606,16 @@ __metadata: languageName: node linkType: hard -"svelte-hmr@npm:^0.15.3": - version: 0.15.3 - resolution: "svelte-hmr@npm:0.15.3" - peerDependencies: - svelte: ^3.19.0 || ^4.0.0 - checksum: 10c0/80b6df78e4bc1dd8d1beb4cfc5c341a7839a444b41320cb1ff56c19741346ecc07ee7cc989d7083b02c40bad80d989d52b0defac4126cd0013eaac378f626d63 - languageName: node - linkType: hard - -"svelte-loader@npm:^3.1.9": - version: 3.1.9 - resolution: "svelte-loader@npm:3.1.9" +"svelte-loader@npm:^3.2.4": + version: 3.2.4 + resolution: "svelte-loader@npm:3.2.4" dependencies: loader-utils: "npm:^2.0.4" svelte-dev-helper: "npm:^1.1.9" svelte-hmr: "npm:^0.14.2" peerDependencies: - svelte: ^3.0.0 || ^4.0.0-next.0 - checksum: 10c0/b71593c06756882f0d6e690d050af497dd4b51074699d33dbc7016c7ea21858619d55fc087c7a205178f92e0ded7b3c3f68ec1a7645847098199d40377afb1ef + svelte: ^3.0.0 || ^4.0.0-next.0 || ^5.0.0-next.1 + checksum: 10c0/837f8e3c81f92c584f97f617ebf969249e0170509697ade502e65b5674b0623810b24d0058456115dd417247cd81df8fbedcb421ce9314f01f0cc8b66b2afef6 languageName: node linkType: hard @@ -26684,24 +26665,24 @@ __metadata: languageName: node linkType: hard -"svelte@npm:^4.0.0": - version: 4.2.8 - resolution: "svelte@npm:4.2.8" +"svelte@npm:^5.0.0, svelte@npm:^5.0.5": + version: 5.0.5 + resolution: "svelte@npm:5.0.5" dependencies: - "@ampproject/remapping": "npm:^2.2.1" - "@jridgewell/sourcemap-codec": "npm:^1.4.15" - "@jridgewell/trace-mapping": "npm:^0.3.18" - acorn: "npm:^8.9.0" - aria-query: "npm:^5.3.0" - axobject-query: "npm:^3.2.1" - code-red: "npm:^1.0.3" - css-tree: "npm:^2.3.1" - estree-walker: "npm:^3.0.3" - is-reference: "npm:^3.0.1" + "@ampproject/remapping": "npm:^2.3.0" + "@jridgewell/sourcemap-codec": "npm:^1.5.0" + "@types/estree": "npm:^1.0.5" + acorn: "npm:^8.12.1" + acorn-typescript: "npm:^1.4.13" + aria-query: "npm:^5.3.1" + axobject-query: "npm:^4.1.0" + esm-env: "npm:^1.0.0" + esrap: "npm:^1.2.2" + is-reference: "npm:^3.0.2" locate-character: "npm:^3.0.0" - magic-string: "npm:^0.30.4" - periscopic: "npm:^3.1.0" - checksum: 10c0/13673a6211cc38224398f4bda8e0ba93edfb1338aa4f28f614a31ac31b152479038761cfc57f1668554f5ab70effcd8023dcf549d75e7b2a7ae703d213b7e9da + magic-string: "npm:^0.30.11" + zimmerframe: "npm:^1.1.2" + checksum: 10c0/9600bc2901b11d8d50f55a4fcbf8499be7475e7adb51222e2ae1aaf18f39207f2f6ca02bbfde1d3d1c6bc84e9058242b42f471deddf8225820d5d11ee83c3029 languageName: node linkType: hard @@ -28516,15 +28497,15 @@ __metadata: languageName: node linkType: hard -"vitefu@npm:^0.2.5": - version: 0.2.5 - resolution: "vitefu@npm:0.2.5" +"vitefu@npm:^1.0.3": + version: 1.0.3 + resolution: "vitefu@npm:1.0.3" peerDependencies: - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0-beta.0 peerDependenciesMeta: vite: optional: true - checksum: 10c0/5781ece3025b6be0eb87ee7d97760a7721b1c6c5ad60ede5f37c86393ece3c8fce4245472f62368eb192448034086e25bdcadf098eefc271277176ab9a430204 + checksum: 10c0/0b41021767885d538d04bb0cdabd140a5397a780997533a3cc1a1ea3c0ffae0cac4bde3e67632440587cd0505c0b6e825dfd8ab7da6249a68076072bea6eada1 languageName: node linkType: hard diff --git a/scripts/utils/yarn.ts b/scripts/utils/yarn.ts index 1f78e58162c5..cacb89630301 100644 --- a/scripts/utils/yarn.ts +++ b/scripts/utils/yarn.ts @@ -81,7 +81,6 @@ export const addWorkaroundResolutions = async ({ cwd, dryRun }: YarnOptions) => ...packageJson.resolutions, // Due to our support of older vite versions '@vitejs/plugin-react': '4.2.0', - '@sveltejs/vite-plugin-svelte': '3.0.1', '@vitejs/plugin-vue': '4.5.0', '@testing-library/dom': '^9.3.4', '@testing-library/jest-dom': '^6.5.0', @@ -116,7 +115,7 @@ export const configureYarn2ForVerdaccio = async ({ if ( key.includes('svelte-kit') || // React prereleases will have INCOMPATIBLE_PEER_DEPENDENCY errors because of transitive dependencies not allowing v19 betas - key.includes('nextjs/prerelease') || + key.includes('nextjs') || key.includes('react-vite/prerelease') || key.includes('react-webpack/prerelease') ) {