Skip to content

Commit 86f3d86

Browse files
committed
Update PNPM config
1 parent 10a25da commit 86f3d86

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ RUN corepack enable
1515

1616
# Setup PNPM
1717
ENV PNPM_HOME="/pnpm"
18-
ENV PATH="$PNPM_HOME:$PATH"
18+
ENV PATH="$PNPM_HOME:$PNPM_HOME/bin:$PATH"
19+
ENV CI=true
20+
ENV PNPM_CONFIG_MINIMUM_RELEASE_AGE=0
21+
ENV PNPM_CONFIG_STRICT_DEP_BUILDS=false
1922

2023
# Install dependencies based on the preferred package manager
2124
RUN \

Dockerfile.dev

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN corepack enable
99

1010
# Setup PNPM
1111
ENV PNPM_HOME="/pnpm"
12-
ENV PATH="$PNPM_HOME:$PATH"
12+
ENV PATH="$PNPM_HOME:$PNPM_HOME/bin:$PATH"
1313
RUN mkdir -p /home/codespace/.pnpm-store /pnpm \
1414
&& chown -R 1000:1000 /home/codespace/.pnpm-store /pnpm
1515

@@ -22,8 +22,12 @@ ENV NODE_ENV=development
2222
USER 1000:1000
2323

2424
# Apply PNPM settings to be consistent with devcontainer
25-
RUN pnpm config set node-linker hoisted --global \
26-
&& pnpm config set store-dir /home/codespace/.pnpm-store --global
25+
ENV CI=true
26+
ENV PNPM_CONFIG_NODE_LINKER=hoisted
27+
ENV PNPM_CONFIG_MINIMUM_RELEASE_AGE=0
28+
ENV PNPM_CONFIG_STRICT_DEP_BUILDS=false
29+
ENV PNPM_CONFIG_CONFIRM_MODULES_PURGE=false
30+
RUN pnpm config set store-dir /home/codespace/.pnpm-store --global
2731

2832
EXPOSE 3000
2933
ENV PORT=3000

0 commit comments

Comments
 (0)