1.0.1 • Published 5 months ago
pnpm-shared-workspace-lockfile-false-prune v1.0.1
Pnpm shared-workspace-lockfile=false prune
Analogue of turbo prune --docker, but for pnpm with shared-workspace-lockfile=false that currently don't supported by turbo.
Usage
FROM node:18-alpine AS base
FROM base AS builder
# some builder steps
WORKDIR /app
RUN pnpm add -g pnpm-shared-workspace-lockfile-false-prune
COPY . .
# Our prune
RUN pnpm-shared-workspace-lockfile-false-prune prune --workspace web
FROM base AS installer
#some installer steps
COPY --from=builder /app/out/json/ .
RUN pnpm install --frozen-lockfile
# Build the project
COPY --from=builder /app/out/full/ .
# Post prune step, required for resolve injected deps
RUN pnpm-shared-workspace-lockfile-false-prune post-prune --workspace web
# Some other build steps
RUN pnpm build