Skip to content

Commit 79f24e3

Browse files
committed
chore: upgrade dependencies
1 parent a5873f6 commit 79f24e3

File tree

11 files changed

+4641
-4206
lines changed

11 files changed

+4641
-4206
lines changed

.github/workflows/e2e.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install dependencies
5353
run: pnpm install --frozen-lockfile --prefer-offline
5454
- name: Run database migrations
55-
run: npx prisma migrate reset --force
55+
run: pnpm dlx prisma migrate reset --force
5656
- name: Store Playwright's Version
5757
run: |
5858
PLAYWRIGHT_VERSION=$(pnpm ls @playwright/test | grep @playwright | sed 's/.*@//')
@@ -66,9 +66,9 @@ jobs:
6666
key: playwright-browsers-${{ env.PLAYWRIGHT_VERSION }}
6767
- name: Setup Playwright
6868
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
69-
run: npx playwright install chromium --with-deps
69+
run: pnpm dlx playwright install chromium --with-deps
7070
- name: Run e2e tests
71-
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
71+
run: pnpm dlx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
7272
- name: Upload test report
7373
uses: actions/upload-artifact@v4
7474
if: always()
@@ -92,7 +92,7 @@ jobs:
9292
pattern: blob-report-*
9393
merge-multiple: true
9494
- name: Merge into HTML Report
95-
run: npx playwright merge-reports --reporter html ./all-blob-reports
95+
run: pnpm dlx playwright merge-reports --reporter html ./all-blob-reports
9696
- name: Upload HTML report
9797
uses: actions/upload-artifact@v4
9898
with:

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no -- commitlint --edit ${1}
1+
pnpm dlx commitlint --edit ${1}

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx lint-staged
1+
pnpm dlx lint-staged

.storybook/main.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@ import path from "path";
33

44
const config: StorybookConfig = {
55
stories: ["../stories/**/*.mdx", "../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
6+
67
addons: [
78
"@storybook/addon-onboarding",
89
"@storybook/addon-links",
910
"@storybook/addon-essentials",
1011
"@storybook/addon-interactions",
1112
"@storybook/addon-themes",
1213
],
14+
1315
framework: {
1416
name: "@storybook/nextjs",
1517
options: {},
1618
},
17-
docs: {
18-
autodocs: "tag",
19-
},
19+
20+
docs: {},
21+
2022
staticDirs: ["../public"],
23+
2124
webpackFinal: async (config) => {
2225
if (config.resolve) {
2326
config.resolve.alias = {
@@ -27,5 +30,9 @@ const config: StorybookConfig = {
2730
}
2831
return config;
2932
},
33+
34+
typescript: {
35+
reactDocgen: "react-docgen-typescript"
36+
}
3037
};
3138
export default config;

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM node:20-alpine AS base
2+
RUN corepack enable
23

34
# Install dependencies only when needed
45
FROM base AS deps
@@ -11,7 +12,7 @@ FROM base AS deps
1112
RUN \
1213
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
1314
elif [ -f package-lock.json ]; then npm ci; \
14-
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
15+
elif [ -f pnpm-lock.yaml ]; then pnpm i --frozen-lockfile; \
1516
else echo "Lockfile not found." && exit 1; \
1617
fi
1718

@@ -27,7 +28,7 @@ FROM base AS builder
2728
# Uncomment the following line in case you want to disable telemetry during the build.
2829
ENV NEXT_TELEMETRY_DISABLED 1
2930

30-
RUN yarn build
31+
RUN pnpm run build
3132

3233
# If using npm comment out above and use below instead
3334
# RUN npm run build
@@ -64,4 +65,4 @@ FROM base AS runner
6465
# set hostname to localhost
6566
ENV HOSTNAME "0.0.0.0"
6667

67-
CMD npx prisma migrate deploy && node server.js
68+
CMD pnpm dlx prisma migrate deploy && node server.js

e2e/books/book-validation.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ test.describe('Book validation', () => {
1919
// Assert
2020
await expect(page).toHaveURL('/books/new')
2121
await expect(
22-
page.locator('[placeholder=Título][required]:invalid'),
22+
page.locator(
23+
'[placeholder=Título][aria-required=true][aria-invalid=true]',
24+
),
2325
).toBeVisible()
2426
})
2527

@@ -59,7 +61,9 @@ test.describe('Book validation', () => {
5961
// Assert
6062
await expect(page).toHaveURL('/books/new')
6163
await expect(
62-
page.locator('[placeholder=Autores][required]:invalid'),
64+
page.locator(
65+
'[placeholder=Autores][aria-required=true][aria-invalid=true]',
66+
),
6367
).toBeVisible()
6468
})
6569

@@ -97,7 +101,9 @@ test.describe('Book validation', () => {
97101
// Assert
98102
await expect(page).toHaveURL('/books/new')
99103
await expect(
100-
page.locator('[placeholder=Imagen][required]:invalid'),
104+
page.locator(
105+
'[placeholder=Imagen][aria-required=true][aria-invalid=true]',
106+
),
101107
).toBeVisible()
102108
})
103109

package.json

Lines changed: 83 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"start": "next start",
1212
"lint": "next lint",
1313
"prepare": "husky",
14-
"postinstall": "npx prisma generate",
14+
"postinstall": "pnpm dlx prisma generate",
1515
"test": "vitest",
1616
"coverage": "vitest run --coverage",
1717
"test:ci": "NODE_ENV=test vitest --watch=false",
@@ -24,113 +24,114 @@
2424
"build-storybook": "storybook build",
2525
"prisma:migrate": "prisma migrate dev",
2626
"prisma:generate": "prisma generate",
27-
"cli:user:admin": "npx tsx src/core/user/infrastructure/cli/add-user.cli.ts admin",
28-
"cli:user:member": "npx tsx src/core/user/infrastructure/cli/add-user.cli.ts member"
27+
"cli:user:admin": "pnpm dlx tsx src/core/user/infrastructure/cli/add-user.cli.ts admin",
28+
"cli:user:member": "pnpm dlx tsx src/core/user/infrastructure/cli/add-user.cli.ts member"
2929
},
3030
"dependencies": {
3131
"@aulasoftwarelibre/next-auth-firewall": "1.2.0",
32-
"@auth/core": "^0.30.0",
33-
"@auth/prisma-adapter": "^2.0.0",
34-
"@heroicons/react": "^2.1.3",
35-
"@nextui-org/avatar": "^2.0.27",
36-
"@nextui-org/breadcrumbs": "^2.0.7",
37-
"@nextui-org/button": "^2.0.31",
38-
"@nextui-org/card": "^2.0.28",
39-
"@nextui-org/divider": "^2.0.27",
40-
"@nextui-org/dropdown": "^2.1.23",
41-
"@nextui-org/input": "^2.1.21",
42-
"@nextui-org/kbd": "^2.0.28",
43-
"@nextui-org/link": "^2.0.29",
44-
"@nextui-org/listbox": "^2.1.19",
45-
"@nextui-org/modal": "^2.0.33",
46-
"@nextui-org/navbar": "^2.0.30",
47-
"@nextui-org/progress": "^2.0.28",
48-
"@nextui-org/radio": "^2.0.28",
49-
"@nextui-org/switch": "^2.0.28",
50-
"@nextui-org/system": "^2.1.2",
51-
"@nextui-org/table": "^2.0.33",
52-
"@nextui-org/tabs": "^2.0.29",
53-
"@nextui-org/theme": "^2.2.3",
54-
"@nextui-org/user": "^2.0.28",
55-
"@prisma/client": "^5.13.0",
56-
"@react-aria/visually-hidden": "^3.8.11",
32+
"@auth/core": "^0.34.2",
33+
"@auth/prisma-adapter": "^2.4.2",
34+
"@heroicons/react": "^2.1.5",
35+
"@nextui-org/avatar": "2.0.32",
36+
"@nextui-org/breadcrumbs": "2.0.12",
37+
"@nextui-org/button": "2.0.37",
38+
"@nextui-org/card": "2.0.33",
39+
"@nextui-org/divider": "2.0.31",
40+
"@nextui-org/dropdown": "2.1.29",
41+
"@nextui-org/input": "2.2.4",
42+
"@nextui-org/kbd": "2.0.33",
43+
"@nextui-org/link": "2.0.34",
44+
"@nextui-org/listbox": "2.1.25",
45+
"@nextui-org/modal": "2.0.39",
46+
"@nextui-org/navbar": "2.0.36",
47+
"@nextui-org/progress": "2.0.33",
48+
"@nextui-org/radio": "2.1.4",
49+
"@nextui-org/switch": "2.0.33",
50+
"@nextui-org/system": "^2.2.5",
51+
"@nextui-org/table": "2.0.39",
52+
"@nextui-org/tabs": "2.0.35",
53+
"@nextui-org/theme": "^2.2.9",
54+
"@nextui-org/user": "2.0.33",
55+
"@prisma/client": "^5.19.1",
56+
"@react-aria/visually-hidden": "^3.8.15",
5757
"amazon-buddy": "^2.2.45",
5858
"date-fns": "^3.6.0",
59-
"framer-motion": "^11.1.9",
60-
"next": "14.2.3",
59+
"framer-motion": "^11.5.4",
60+
"next": "14.2.8",
6161
"next-auth": "5.0.0-beta.9",
6262
"next-themes": "^0.3.0",
63-
"nodemailer": "^6.9.13",
63+
"nodemailer": "^6.9.15",
6464
"react": "^18.3.1",
6565
"react-dom": "^18.3.1",
6666
"react-hot-toast": "^2.4.1",
6767
"server-only": "^0.0.1",
68-
"sharp": "^0.33.3",
69-
"ts-essentials": "^10.0.0",
68+
"sharp": "^0.33.5",
69+
"ts-essentials": "^10.0.2",
7070
"ulid": "^2.3.0",
71-
"use-debounce": "^10.0.0",
72-
"uuid": "^9.0.1",
71+
"use-debounce": "^10.0.3",
72+
"uuid": "^10.0.0",
7373
"zod": "^3.23.8"
7474
},
7575
"devDependencies": {
76-
"@commitlint/cli": "^19.3.0",
77-
"@commitlint/config-conventional": "19.2.2",
78-
"@playwright/test": "^1.44.0",
79-
"@storybook/addon-essentials": "^8.0.10",
80-
"@storybook/addon-interactions": "^8.0.10",
81-
"@storybook/addon-links": "^8.0.10",
82-
"@storybook/addon-onboarding": "^8.0.10",
83-
"@storybook/addon-themes": "^8.0.10",
84-
"@storybook/blocks": "^8.0.10",
85-
"@storybook/nextjs": "^8.0.10",
86-
"@storybook/react": "^8.0.10",
87-
"@storybook/testing-library": "^0.2.2",
88-
"@testcontainers/postgresql": "^10.9.0",
89-
"@testing-library/jest-dom": "^6.4.5",
90-
"@testing-library/react": "^15.0.7",
76+
"@commitlint/cli": "^19.4.1",
77+
"@commitlint/config-conventional": "19.4.1",
78+
"@playwright/test": "^1.47.0",
79+
"@storybook/addon-essentials": "^8.2.9",
80+
"@storybook/addon-interactions": "^8.2.9",
81+
"@storybook/addon-links": "^8.2.9",
82+
"@storybook/addon-onboarding": "^8.2.9",
83+
"@storybook/addon-themes": "^8.2.9",
84+
"@storybook/blocks": "^8.2.9",
85+
"@storybook/nextjs": "^8.2.9",
86+
"@storybook/react": "^8.2.9",
87+
"@storybook/test": "^8.2.9",
88+
"@testcontainers/postgresql": "^10.13.0",
89+
"@testing-library/jest-dom": "^6.5.0",
90+
"@testing-library/react": "^16.0.1",
9191
"@types/lodash.clonedeep": "^4.5.9",
92-
"@types/node": "^20.12.11",
92+
"@types/node": "^22.5.4",
9393
"@types/nodemailer": "^6.4.15",
94-
"@types/react": "^18.3.1",
94+
"@types/react": "^18.3.5",
9595
"@types/react-dom": "^18.3.0",
96-
"@types/uuid": "^9.0.8",
97-
"@typescript-eslint/eslint-plugin": "^7.8.0",
98-
"@typescript-eslint/parser": "^7.8.0",
99-
"@vitejs/plugin-react": "^4.2.1",
100-
"@vitest/coverage-v8": "1.6.0",
101-
"@vitest/ui": "1.6.0",
102-
"autoprefixer": "^10.4.19",
96+
"@types/uuid": "^10.0.0",
97+
"@typescript-eslint/eslint-plugin": "^8.4.0",
98+
"@typescript-eslint/parser": "^8.4.0",
99+
"@vitejs/plugin-react": "^4.3.1",
100+
"@vitest/coverage-v8": "2.0.5",
101+
"@vitest/ui": "2.0.5",
102+
"autoprefixer": "^10.4.20",
103103
"dotenv": "^16.4.5",
104104
"eslint": "^8.57.0",
105-
"eslint-config-next": "14.2.3",
105+
"eslint-config-next": "14.2.8",
106106
"eslint-config-prettier": "^9.1.0",
107-
"eslint-plugin-import": "^2.29.1",
108-
"eslint-plugin-prettier": "^5.1.3",
109-
"eslint-plugin-react": "^7.34.1",
110-
"eslint-plugin-simple-import-sort": "^12.1.0",
107+
"eslint-plugin-import": "^2.30.0",
108+
"eslint-plugin-prettier": "^5.2.1",
109+
"eslint-plugin-react": "^7.35.2",
110+
"eslint-plugin-simple-import-sort": "^12.1.1",
111111
"eslint-plugin-sort": "^3.0.2",
112112
"eslint-plugin-storybook": "^0.8.0",
113-
"eslint-plugin-unicorn": "^52.0.0",
114-
"eslint-plugin-unused-imports": "^3.2.0",
115-
"husky": "^9.0.11",
116-
"jsdom": "^24.0.0",
113+
"eslint-plugin-unicorn": "^55.0.0",
114+
"eslint-plugin-unused-imports": "^4.1.3",
115+
"husky": "^9.1.5",
116+
"jsdom": "^25.0.0",
117117
"just-pnpm": "^1.0.2",
118-
"lint-staged": "^15.2.2",
118+
"lint-staged": "^15.2.10",
119119
"lodash.clonedeep": "^4.5.0",
120-
"nextui-cli": "^0.2.1",
121-
"postcss": "^8.4.38",
122-
"prettier": "^3.2.5",
123-
"prettier-plugin-tailwindcss": "^0.5.14",
124-
"prisma": "^5.13.0",
125-
"rimraf": "^5.0.5",
126-
"storybook": "^8.0.10",
127-
"tailwindcss": "^3.4.3",
128-
"testcontainers": "^10.9.0",
129-
"tsx": "^4.9.3",
130-
"typescript": "^5.4.5",
131-
"vite-tsconfig-paths": "^4.3.2",
132-
"vitest": "1.6.0"
120+
"nextui-cli": "^0.3.4",
121+
"postcss": "^8.4.45",
122+
"prettier": "^3.3.3",
123+
"prettier-plugin-tailwindcss": "^0.6.6",
124+
"prisma": "^5.19.1",
125+
"rimraf": "^6.0.1",
126+
"storybook": "^8.2.9",
127+
"tailwindcss": "^3.4.10",
128+
"testcontainers": "^10.13.0",
129+
"tsx": "^4.19.0",
130+
"typescript": "^5.5.4",
131+
"vite-tsconfig-paths": "^5.0.1",
132+
"vitest": "2.0.5"
133133
},
134+
"packageManager": "[email protected]",
134135
"commitlint": {
135136
"extends": [
136137
"@commitlint/config-conventional"

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default defineConfig({
3131
trace: 'retry-with-trace',
3232
},
3333
webServer: {
34-
command: `yarn dev -p ${PORT}`,
34+
command: `pnpm run dev -p ${PORT}`,
3535
reuseExistingServer: !process.env.CI,
3636
url: baseURL,
3737
},

0 commit comments

Comments
 (0)