fix: use .npmrc in Docker for hoisted mode consistency
The pnpm lockfile was generated with hoisted mode, so Docker must also use hoisted mode to match the module resolution paths. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -10,18 +10,14 @@ RUN npm install -g pnpm@9.15.4 turbo@1.10.0
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files for dependency resolution
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json .npmrc ./
|
||||
COPY apps/web/package.json ./apps/web/
|
||||
COPY packages/core/client/node/package.json ./packages/core/client/node/
|
||||
COPY packages/core/client/typescript/package.json ./packages/core/client/typescript/
|
||||
COPY packages/abacus-react/package.json ./packages/abacus-react/
|
||||
COPY packages/templates/package.json ./packages/templates/
|
||||
|
||||
# Remove .npmrc if it exists (Docker should use default pnpm mode, not hoisted)
|
||||
COPY .npmrc* ./
|
||||
RUN rm -f .npmrc
|
||||
|
||||
# Install dependencies
|
||||
# Install dependencies (will use .npmrc with hoisted mode)
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Builder stage
|
||||
|
||||
Reference in New Issue
Block a user