Drop legacy peer deps
This commit is contained in:
@@ -91,12 +91,12 @@ story. If you need a new global, update `preview.js`.
|
|||||||
|
|
||||||
# Interaction tests (`play`)
|
# Interaction tests (`play`)
|
||||||
|
|
||||||
Use `@storybook/test` for interaction assertions — not `@testing-library/*`
|
Use `storybook/test` for interaction assertions — not `@testing-library/*`
|
||||||
directly. This matches `Checkbox.stories.js` and stays compatible with the
|
directly. This matches `Checkbox.stories.js` and stays compatible with the
|
||||||
Vitest portable-stories runner in `.storybook/vitest.setup.js`.
|
Vitest portable-stories runner in `.storybook/vitest.setup.js`.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { within, userEvent, expect } from "@storybook/test";
|
import { within, userEvent, expect } from "storybook/test";
|
||||||
|
|
||||||
export const Interactive = {
|
export const Interactive = {
|
||||||
play: async ({ canvasElement }) => {
|
play: async ({ canvasElement }) => {
|
||||||
|
|||||||
+2
-2
@@ -6,9 +6,9 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
addons: [
|
addons: [
|
||||||
// Removed @storybook/addon-essentials due to version mismatch with Storybook 10.x
|
// Removed @storybook/addon-essentials due to version mismatch with Storybook 10.x
|
||||||
// Using individual addons instead
|
// Using individual addons instead. Interaction helpers import from storybook/test
|
||||||
|
// (bundled with storybook@10); @storybook/addon-interactions was merged into SB 8 core.
|
||||||
"@storybook/addon-a11y",
|
"@storybook/addon-a11y",
|
||||||
"@storybook/addon-interactions",
|
|
||||||
],
|
],
|
||||||
framework: {
|
framework: {
|
||||||
name: "@storybook/nextjs",
|
name: "@storybook/nextjs",
|
||||||
|
|||||||
+3
-12
@@ -10,19 +10,10 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
|||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
# --legacy-peer-deps: tolerates two pre-existing peer-dependency mismatches
|
|
||||||
# that local `npm install` papers over but container `npm ci` (npm 10.8.x)
|
|
||||||
# refuses:
|
|
||||||
# 1. next-intl@3.26.5 declares peer next "^10..^15" while the project is
|
|
||||||
# on next@16. Upgrading to next-intl@4 supports next 16 cleanly.
|
|
||||||
# 2. @storybook/addon-interactions@8 vs storybook@10 (devDep only;
|
|
||||||
# the addon was merged into Storybook 8 core and can be removed).
|
|
||||||
# Drop this flag in the follow-up that lands next-intl@4 + Storybook
|
|
||||||
# cleanup together.
|
|
||||||
# --ignore-scripts: skips the project `postinstall` (`npm rebuild lightningcss
|
# --ignore-scripts: skips the project `postinstall` (`npm rebuild lightningcss
|
||||||
# && prisma generate`). The Prisma schema is not yet present in this stage;
|
# && prisma generate`). The Prisma schema is not yet present in this stage;
|
||||||
# the builder stage runs `prisma generate` after `COPY . .`.
|
# the builder stage runs `prisma generate` after `COPY . .`.
|
||||||
RUN npm ci --no-audit --fund=false --legacy-peer-deps --ignore-scripts
|
RUN npm ci --no-audit --fund=false --ignore-scripts
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
||||||
|
|||||||
Generated
+686
-359
File diff suppressed because it is too large
Load Diff
+1
-2
@@ -55,7 +55,7 @@
|
|||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"jspdf": "^2.5.2",
|
"jspdf": "^2.5.2",
|
||||||
"next": "^16.0.0",
|
"next": "^16.0.0",
|
||||||
"next-intl": "^3.26.5",
|
"next-intl": "^4.0.0",
|
||||||
"nodemailer": "^8.0.4",
|
"nodemailer": "^8.0.4",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
@@ -67,7 +67,6 @@
|
|||||||
"@lhci/cli": "^0.15.1",
|
"@lhci/cli": "^0.15.1",
|
||||||
"@playwright/test": "^1.55.0",
|
"@playwright/test": "^1.55.0",
|
||||||
"@storybook/addon-a11y": "^10.2.0",
|
"@storybook/addon-a11y": "^10.2.0",
|
||||||
"@storybook/addon-interactions": "^8.6.14",
|
|
||||||
"@storybook/nextjs": "^10.2.0",
|
"@storybook/nextjs": "^10.2.0",
|
||||||
"@svgr/webpack": "^8.1.0",
|
"@svgr/webpack": "^8.1.0",
|
||||||
"@tailwindcss/postcss": "^4.1.11",
|
"@tailwindcss/postcss": "^4.1.11",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Button from "../../app/components/buttons/Button";
|
import Button from "../../app/components/buttons/Button";
|
||||||
import { within, userEvent } from "@storybook/test";
|
import { within, userEvent } from "storybook/test";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: "Components/Buttons/Button/Visual Regression",
|
title: "Components/Buttons/Button/Visual Regression",
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Checkbox from "../../app/components/controls/Checkbox";
|
import Checkbox from "../../app/components/controls/Checkbox";
|
||||||
import { within, userEvent } from "@storybook/test";
|
import { within, userEvent, expect } from "storybook/test";
|
||||||
import { expect } from "@storybook/test";
|
|
||||||
|
|
||||||
// Interaction functions for Storybook play functions
|
// Interaction functions for Storybook play functions
|
||||||
const DefaultInteraction = {
|
const DefaultInteraction = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Footer from "../../app/components/navigation/Footer";
|
import Footer from "../../app/components/navigation/Footer";
|
||||||
import { within, userEvent } from "@storybook/test";
|
import { within, userEvent } from "storybook/test";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: "Components/Navigation/Footer/Responsive",
|
title: "Components/Navigation/Footer/Responsive",
|
||||||
|
|||||||
Reference in New Issue
Block a user