From 5672550771653f9e99c9f009a46e67cbc52542bc Mon Sep 17 00:00:00 2001 From: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:54:20 +0000 Subject: [PATCH] chore: update --- dockerfile | 4 ++-- eslint.config.mjs => eslint.config.ts | 0 package.json | 14 ++++++------- pnpm-lock.yaml | 30 +++++++++++++-------------- tsconfig.json | 3 +-- 5 files changed, 25 insertions(+), 26 deletions(-) rename eslint.config.mjs => eslint.config.ts (100%) diff --git a/dockerfile b/dockerfile index 893aa4b..c746d2d 100644 --- a/dockerfile +++ b/dockerfile @@ -1,5 +1,5 @@ # --- Giai đoạn 1: Build --- -FROM node:18-alpine AS builder +FROM node:25-alpine AS builder # Cài đặt pnpm RUN corepack enable && corepack prepare pnpm@latest --activate @@ -10,7 +10,7 @@ WORKDIR /app COPY package.json pnpm-lock.yaml ./ # Cài đặt dependencies (sử dụng --frozen-lockfile để đảm bảo đúng phiên bản) -RUN pnpm install --frozen-lockfile +RUN pnpm install --prod --frozen-lockfile # Copy toàn bộ code COPY . . diff --git a/eslint.config.mjs b/eslint.config.ts similarity index 100% rename from eslint.config.mjs rename to eslint.config.ts diff --git a/package.json b/package.json index de1e8e7..0e2a08a 100644 --- a/package.json +++ b/package.json @@ -14,17 +14,19 @@ "next": "16.1.7", "react": "19.2.3", "react-dom": "19.2.3", - "tailwind": "^4.0.0" + "tailwind": "^4.0.0", + "tailwindcss": "^4.2.2", + "@tailwindcss/postcss": "^4.2.2", + "@types/node": "^20.19.37", + "@types/react": "^19.2.14", + "typescript": "^5.9.3" }, "devDependencies": { "@saithodev/semantic-release-gitea": "^2.1.0", "@semantic-release/exec": "^7.1.0", "@semantic-release/github": "^12.0.6", "@semantic-release/npm": "^13.1.5", - "@tailwindcss/postcss": "^4.2.2", "@trivago/prettier-plugin-sort-imports": "^6.0.2", - "@types/node": "^20.19.37", - "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "eslint": "^9.39.4", "eslint-config-next": "16.1.7", @@ -32,8 +34,6 @@ "prettier-plugin-embed": "^0.5.1", "prettier-plugin-groovy": "^0.2.1", "prettier-plugin-tailwindcss": "^0.7.2", - "semantic-release": "^25.0.3", - "tailwindcss": "^4.2.2", - "typescript": "^5.9.3" + "semantic-release": "^25.0.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3df2206..5268072 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,15 @@ importers: .: dependencies: + '@tailwindcss/postcss': + specifier: ^4.2.2 + version: 4.2.2 + '@types/node': + specifier: ^20.19.37 + version: 20.19.37 + '@types/react': + specifier: ^19.2.14 + version: 19.2.14 next: specifier: 16.1.7 version: 16.1.7(@babel/core@7.29.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -20,6 +29,12 @@ importers: tailwind: specifier: ^4.0.0 version: 4.0.0 + tailwindcss: + specifier: ^4.2.2 + version: 4.2.2 + typescript: + specifier: ^5.9.3 + version: 5.9.3 devDependencies: '@saithodev/semantic-release-gitea': specifier: ^2.1.0 @@ -33,18 +48,9 @@ importers: '@semantic-release/npm': specifier: ^13.1.5 version: 13.1.5(semantic-release@25.0.3(typescript@5.9.3)) - '@tailwindcss/postcss': - specifier: ^4.2.2 - version: 4.2.2 '@trivago/prettier-plugin-sort-imports': specifier: ^6.0.2 version: 6.0.2(prettier@3.8.1) - '@types/node': - specifier: ^20.19.37 - version: 20.19.37 - '@types/react': - specifier: ^19.2.14 - version: 19.2.14 '@types/react-dom': specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.14) @@ -69,12 +75,6 @@ importers: semantic-release: specifier: ^25.0.3 version: 25.0.3(typescript@5.9.3) - tailwindcss: - specifier: ^4.2.2 - version: 4.2.2 - typescript: - specifier: ^5.9.3 - version: 5.9.3 packages: diff --git a/tsconfig.json b/tsconfig.json index c6a6796..5a92bdd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,8 +29,7 @@ "**/*.tsx", ".next/types/**/*.ts", ".next/dev/types/**/*.ts", - "**/*.mts", "types/**/*.d.ts" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "script", "*.ts"] }