Skip to content

Commit

Permalink
fix: upgrade to yarn 4 (stable)
Browse files Browse the repository at this point in the history
ignore generated .yarn and .yarnrc.yml for now, still evaluating if it's
better practice to include it in the repo
  • Loading branch information
alee committed Nov 21, 2023
1 parent 5e1db80 commit b3b62cf
Show file tree
Hide file tree
Showing 5 changed files with 5,258 additions and 3,412 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.git
.yarn
.yarnrc.yml
build
incoming
docker
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# app specific
.yarn
.yarnrc.yml
build
incoming
logs
Expand Down
5 changes: 4 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
FROM node:lts-bookworm-slim

ENV YARN_VERSION stable

RUN apt-get update \
&& apt-get install -y libjpeg-turbo-progs \
git \
nasm \
vim \
&& yarn set version $YARN_VERSION \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

WORKDIR /code
COPY package.json yarn.lock /code/
RUN set -ex; yarn config set ignore-engines true; \
RUN set -ex; \
if [ "$NODE_ENV" = "production" ]; then \
yarn install --no-cache --frozen-lockfile --production; \
elif [ "$NODE_ENV" = "test" ] || [ "$NODE_ENV" = "e2e" ]; then \
Expand Down
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@
"vite": "^4.1.4",
"vitest": "^0.29.1",
"vue-tsc": "^1.2.0"
}
},
"packageManager": "yarn@4.0.2"
}
Loading

0 comments on commit b3b62cf

Please sign in to comment.