diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..521a9f7 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/docker/Dockerfile b/docker/Dockerfile index 357ae6f..af810d3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,7 +11,7 @@ RUN apk add --no-cache libc6-compat WORKDIR /app # Copy package files -COPY package.json package-lock.json* ./ +COPY package.json package-lock.json* .npmrc* ./ RUN npm ci # Rebuild the source code only when needed diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index cc36a9b..1c69dda 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -10,7 +10,7 @@ WORKDIR /app RUN apk add --no-cache libc6-compat openssl # Copy package files -COPY package.json package-lock.json* ./ +COPY package.json package-lock.json* .npmrc* ./ # Install dependencies RUN npm install && npm install tailwindcss-animate diff --git a/prisma/seed-expertise-tags.ts b/prisma/seed-expertise-tags.ts index 30d523d..4f1c7a1 100644 --- a/prisma/seed-expertise-tags.ts +++ b/prisma/seed-expertise-tags.ts @@ -131,7 +131,7 @@ async function main() { const existingTags = await prisma.expertiseTag.findMany({ select: { name: true }, }) - const existingNames = new Set(existingTags.map((t) => t.name)) + const existingNames = new Set(existingTags.map((t: { name: string }) => t.name)) // Filter out tags that already exist const newTags = EXPERTISE_TAGS.filter((t) => !existingNames.has(t.name))