Skip to content

Commit

Permalink
chore: yarn 4 (#4289)
Browse files Browse the repository at this point in the history
* chore: yarn 4 website

* chore: yarn 4
  • Loading branch information
tenstad authored Dec 29, 2024
1 parent 2e4f4ab commit 1ad2b01
Show file tree
Hide file tree
Showing 14 changed files with 28,542 additions and 18,929 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
NODE_OPTIONS: "--max-old-space-size=4096"
GITHUB_HEAD_REF: "${{ github.event_name == 'pull_request' && github.head_ref || 'main' }}"
run: |
yarn install --frozen-lockfile
yarn install --immutable
yarn clear
export STAGING_BUILD=false
yarn build
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ gha-creds-*.json
# macOS
.DS_Store
gitops-server.dockerfile

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-4.5.3.cjs
nodeLinker: node-modules
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ ui: node_modules $(shell find ui -type f) ## Build the UI

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

ui-lint: ## Run linter against the UI
yarn lint
Expand All @@ -188,7 +188,7 @@ ui-test: ## Run UI tests
yarn test

ui-audit: ## Run audit against the UI
yarn audit --production
yarn npm audit --environment production

ui-audit-fix: ## Fix UI audit errors
yarn yarn-audit-fix
Expand Down
2 changes: 2 additions & 0 deletions gitops-server.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ COPY --chown=node:node Makefile /home/app/
COPY --chown=node:node tsconfig.json /home/app/
COPY --chown=node:node .parcelrc /home/app/
COPY --chown=node:node .npmrc /home/app/
COPY --chown=node:node .yarn /home/app/.yarn
COPY --chown=node:node .yarnrc.yml /home/app/
RUN make node_modules
COPY --chown=node:node ui /home/app/ui
RUN --mount=type=cache,target=/home/app/ui/.parcel-cache make ui
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,6 @@
},
"engines": {
"node": ">=22.0"
}
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion test/library/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x

git clone https://github.com/weaveworks-gitops-test/wego-library-test.git test/library/wego-library-test
cd test/library/wego-library-test
yarn install --frozen-lockfile
yarn install --immutable
yarn build
go mod tidy
go build main.go
8 changes: 8 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
934 changes: 934 additions & 0 deletions website/.yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions website/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-4.5.3.cjs
nodeLinker: node-modules
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@
},
"engines": {
"node": ">=22.0"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 1ad2b01

Please sign in to comment.