Drop legacy peer deps

This commit is contained in:
adilallo
2026-05-23 13:45:02 -06:00
parent 2fd20d5b2a
commit d084ea3b33
8 changed files with 697 additions and 381 deletions
+2 -2
View File
@@ -91,12 +91,12 @@ story. If you need a new global, update `preview.js`.
# 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
Vitest portable-stories runner in `.storybook/vitest.setup.js`.
```javascript
import { within, userEvent, expect } from "@storybook/test";
import { within, userEvent, expect } from "storybook/test";
export const Interactive = {
play: async ({ canvasElement }) => {
+2 -2
View File
@@ -6,9 +6,9 @@ module.exports = {
],
addons: [
// 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-interactions",
],
framework: {
name: "@storybook/nextjs",
+1 -10
View File
@@ -10,19 +10,10 @@ ENV NEXT_TELEMETRY_DISABLED=1
FROM base AS deps
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
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
# && prisma generate`). The Prisma schema is not yet present in this stage;
# 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
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
+686 -359
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -55,7 +55,7 @@
"gray-matter": "^4.0.3",
"jspdf": "^2.5.2",
"next": "^16.0.0",
"next-intl": "^3.26.5",
"next-intl": "^4.0.0",
"nodemailer": "^8.0.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
@@ -67,7 +67,6 @@
"@lhci/cli": "^0.15.1",
"@playwright/test": "^1.55.0",
"@storybook/addon-a11y": "^10.2.0",
"@storybook/addon-interactions": "^8.6.14",
"@storybook/nextjs": "^10.2.0",
"@svgr/webpack": "^8.1.0",
"@tailwindcss/postcss": "^4.1.11",
+1 -1
View File
@@ -1,5 +1,5 @@
import Button from "../../app/components/buttons/Button";
import { within, userEvent } from "@storybook/test";
import { within, userEvent } from "storybook/test";
export default {
title: "Components/Buttons/Button/Visual Regression",
+1 -2
View File
@@ -1,7 +1,6 @@
import React from "react";
import Checkbox from "../../app/components/controls/Checkbox";
import { within, userEvent } from "@storybook/test";
import { expect } from "@storybook/test";
import { within, userEvent, expect } from "storybook/test";
// Interaction functions for Storybook play functions
const DefaultInteraction = {
@@ -1,5 +1,5 @@
import Footer from "../../app/components/navigation/Footer";
import { within, userEvent } from "@storybook/test";
import { within, userEvent } from "storybook/test";
export default {
title: "Components/Navigation/Footer/Responsive",