Skip to content

Commit

Permalink
web: use yarn berry (#6313)
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Santos <nick.santos@docker.com>
  • Loading branch information
nicks authored Feb 29, 2024
1 parent 270aeb7 commit 5dac6c0
Show file tree
Hide file tree
Showing 8 changed files with 22,917 additions and 15,730 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ dist
# web dependencies
/web/node_modules
/web/.pnp
/web/.yarn/*.gz
/web/.yarn/cache
.pnp.js

# web testing
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,18 @@ dev-js:
cd web && yarn install && yarn run start

check-js:
cd web && yarn install --frozen-lockfile
cd web && yarn install --immutable
# make sure there are no compilation errors or lint warnings
cd web && CI=true yarn build
cd web && yarn run check

build-js:
cd web && yarn install --frozen-lockfile
cd web && yarn install --immutable
cd web && yarn build
cp -r web/build/* pkg/assets/build

test-js:
cd web && yarn install --frozen-lockfile
cd web && yarn install --immutable
ifneq ($(CIRCLECI),true)
cd web && CI=true yarn test
else
Expand Down
5 changes: 0 additions & 5 deletions package.json

This file was deleted.

893 changes: 893 additions & 0 deletions web/.yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions web/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.0.cjs
checksumBehavior: "update"
5 changes: 3 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"webpack": "5"
},
"engines": {
"node": "^16 || ^18 || ^20"
}
"node": ">=18"
},
"packageManager": "yarn@4.1.0"
}
37,720 changes: 22,008 additions & 15,712 deletions web/yarn.lock

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions yarn.lock

This file was deleted.

0 comments on commit 5dac6c0

Please sign in to comment.