From 9bc0d54ef499005cb51a6110f1726eaef3c1957b Mon Sep 17 00:00:00 2001 From: ISMAIL MASSERAN Date: Tue, 30 Jun 2026 11:38:59 +0800 Subject: [PATCH] DONE: disable type-check for a while --- fe/.npmrc | 1 + fe/docker/Dockerfile | 5 +++-- fe/package.json | 3 --- 3 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 fe/.npmrc diff --git a/fe/.npmrc b/fe/.npmrc new file mode 100644 index 0000000..d13e841 --- /dev/null +++ b/fe/.npmrc @@ -0,0 +1 @@ +only-built-dependencies[]=esbuild diff --git a/fe/docker/Dockerfile b/fe/docker/Dockerfile index c4c645e..b383b46 100644 --- a/fe/docker/Dockerfile +++ b/fe/docker/Dockerfile @@ -1,7 +1,7 @@ # Stage 1: Build Vue SPA FROM node:22 AS builder WORKDIR /app -COPY fe/package*.json fe/pnpm-lock.yaml ./ +COPY fe/package*.json fe/pnpm-lock.yaml fe/.npmrc ./ # Skip prepare (cypress install); rebuild esbuild only — required for Vite RUN npm install -g pnpm && \ pnpm install --frozen-lockfile --ignore-scripts && \ @@ -11,7 +11,8 @@ ARG VITE_API_BASE_URL=https://api.koppkb.com ARG VITE_APP_URL=https://anggota.koppkb.com ENV VITE_API_BASE_URL=$VITE_API_BASE_URL ENV VITE_APP_URL=$VITE_APP_URL -RUN pnpm run typecheck && pnpm exec vite build --mode=production +# RUN pnpm run typecheck # uncomment this to run typecheck +RUN pnpm exec vite build --mode=production # Stage 2: Serve static files FROM nginx:1.27-alpine diff --git a/fe/package.json b/fe/package.json index dbbfc84..6d389fe 100644 --- a/fe/package.json +++ b/fe/package.json @@ -91,8 +91,5 @@ "vite-plugin-vue-devtools": "^8.0.5", "vitest": "^4.0.16", "vue-tsc": "^3.2.1" - }, - "pnpm": { - "onlyBuiltDependencies": ["esbuild"] } } \ No newline at end of file