Skip to content

Commit 8be49b0

Browse files
committed
chore: yarn 4
1 parent b1ae8f1 commit 8be49b0

File tree

8 files changed

+13680
-9055
lines changed

8 files changed

+13680
-9055
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ gha-creds-*.json
3333
# macOS
3434
.DS_Store
3535
gitops-server.dockerfile
36+
37+
.pnp.*
38+
.yarn/*
39+
!.yarn/patches
40+
!.yarn/plugins
41+
!.yarn/releases
42+
!.yarn/sdks
43+
!.yarn/versions

.yarn/releases/yarn-4.5.3.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
yarnPath: .yarn/releases/yarn-4.5.3.cjs
2+
nodeLinker: node-modules

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ ui: node_modules $(shell find ui -type f) ## Build the UI
169169

170170
node_modules: ## Install node modules
171171
rm -rf .parcel-cache
172-
yarn config set network-timeout 600000 && yarn --frozen-lockfile
172+
yarn --immutable --network-timeout 600000
173173

174174
ui-lint: ## Run linter against the UI
175175
yarn lint
@@ -188,7 +188,7 @@ ui-test: ## Run UI tests
188188
yarn test
189189

190190
ui-audit: ## Run audit against the UI
191-
yarn audit --production
191+
yarn npm audit --environment production
192192

193193
ui-audit-fix: ## Fix UI audit errors
194194
yarn yarn-audit-fix

gitops-server.dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ COPY --chown=node:node Makefile /home/app/
1010
COPY --chown=node:node tsconfig.json /home/app/
1111
COPY --chown=node:node .parcelrc /home/app/
1212
COPY --chown=node:node .npmrc /home/app/
13+
COPY --chown=node:node .yarn /home/app/.yarn
14+
COPY --chown=node:node .yarnrc.yml /home/app/
1315
RUN make node_modules
1416
COPY --chown=node:node ui /home/app/ui
1517
RUN --mount=type=cache,target=/home/app/ui/.parcel-cache make ui

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,6 @@
139139
},
140140
"engines": {
141141
"node": ">=22.0"
142-
}
142+
},
143+
"packageManager": "yarn@4.5.3"
143144
}

test/library/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -x
44

55
git clone https://github.com/weaveworks-gitops-test/wego-library-test.git test/library/wego-library-test
66
cd test/library/wego-library-test
7-
yarn install --frozen-lockfile
7+
yarn install --immutable
88
yarn build
99
go mod tidy
1010
go build main.go

yarn.lock

Lines changed: 12729 additions & 9051 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)