Skip to content

Commit

Permalink
Bump Yarn from 3.4.1 to 4.4.1 (#2683)
Browse files Browse the repository at this point in the history
This bumps Yarn from `3.4.1` to `4.4.1` and fixes any breaking changes.
  • Loading branch information
Mrtenz authored Sep 2, 2024
1 parent 908c37b commit dcb4f0a
Show file tree
Hide file tree
Showing 11 changed files with 8,833 additions and 8,861 deletions.
52 changes: 0 additions & 52 deletions .yarn/plugins/@yarnpkg/plugin-constraints.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .yarn/plugins/local/plugin-workspaces-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ module.exports = {
const includes = workspaces.map((workspace) => workspace.manifest.name)
.flatMap(({ scope, name }) => ['--include', `@${scope}/${name}`]);

await this.cli.run(['workspaces', 'foreach', '--verbose', ...includes, ...extraArgs, commandName, ...args], this.context);
await this.cli.run(['workspaces', 'foreach', '--all', '--verbose', ...includes, ...extraArgs, commandName, ...args], this.context);
}

async execute() {
Expand Down
873 changes: 0 additions & 873 deletions .yarn/releases/yarn-3.4.1.cjs

This file was deleted.

925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.4.1.cjs

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

enableScripts: false

enableTelemetry: 0
Expand All @@ -8,18 +12,14 @@ logFilters:

nodeLinker: node-modules

packageExtensions:
'@wdio/browser-runner@*':
dependencies:
'@babel/core': '*'

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
spec: 'https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js'
- path: .yarn/plugins/@yarnpkg/plugin-constraints.cjs
spec: '@yarnpkg/plugin-constraints'
- path: .yarn/plugins/local/plugin-workspaces-filter.js

yarnPath: .yarn/releases/yarn-3.4.1.cjs

packageExtensions:
'@wdio/browser-runner@*':
dependencies:
'@babel/core': '*'
yarnPath: .yarn/releases/yarn-4.4.1.cjs
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
"postinstall": "simple-git-hooks",
"lint:eslint": "eslint . --cache --ext js,jsx,ts,tsx",
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' '**/*.html'",
"lint:changelogs": "yarn workspaces foreach --parallel --verbose run lint:changelog",
"lint:dependencies": "yarn workspaces foreach --parallel --verbose run lint:dependencies && yarn dedupe --check",
"lint:changelogs": "yarn workspaces foreach --all --parallel --verbose run lint:changelog",
"lint:dependencies": "yarn workspaces foreach --all --parallel --verbose run lint:dependencies && yarn dedupe --check",
"lint:tsconfig": "node scripts/verify-tsconfig.mjs",
"lint": "yarn workspaces foreach --parallel run lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
"lint:fix": "yarn workspaces foreach --parallel run lint:eslint --fix && yarn lint:misc --write && yarn lint:tsconfig && yarn constraints --fix && yarn dedupe",
"lint": "yarn workspaces foreach --all --parallel run lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
"lint:fix": "yarn workspaces foreach --all --parallel run lint:eslint --fix && yarn lint:misc --write && yarn lint:tsconfig && yarn constraints --fix && yarn dedupe",
"lint:ci": "yarn lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
"build": "yarn build:source && yarn build:types",
"build:ci": "yarn workspaces filter --include \"packages/*\" --parallel --topological --no-private run build:ci",
"build:clean": "yarn clean && yarn build",
"build:source": "yarn workspaces filter --parallel --topological --exclude \"{packages/examples,packages/examples/packages/invoke-snap}\" run build",
"build:types": "tsc --build tsconfig.build.json",
"build:examples": "yarn workspace @metamask/example-snaps build",
"clean": "yarn workspaces foreach --parallel --verbose run clean",
"test": "yarn workspaces foreach --parallel --verbose run test",
"test:browser": "yarn workspaces foreach --verbose run test:browser",
"clean": "yarn workspaces foreach --all --parallel --verbose run clean",
"test": "yarn workspaces foreach --all --parallel --verbose run test",
"test:browser": "yarn workspaces foreach --all --verbose run test:browser",
"child-workspace-package-names-as-json": "ts-node scripts/child-workspace-package-names-as-json.ts",
"prepare-preview-builds": "./scripts/prepare-preview-builds.sh",
"publish-previews": "yarn workspaces foreach --parallel --verbose run publish:preview",
"publish-previews": "yarn workspaces foreach --all --parallel --verbose run publish:preview",
"install-chrome": "./scripts/install-chrome.sh",
"get-release-tag": "ts-node --swc scripts/get-release-tag.ts",
"test:e2e": "yarn workspaces foreach --verbose --exclude root run test:e2e"
"test:e2e": "yarn workspaces foreach --all --verbose --exclude root run test:e2e"
},
"simple-git-hooks": {
"pre-commit": "yarn lint-staged && yarn dedupe --check"
Expand Down Expand Up @@ -126,5 +126,5 @@
"vite>esbuild": true
}
},
"packageManager": "yarn@3.6.0"
"packageManager": "yarn@4.4.1"
}
12 changes: 6 additions & 6 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
"packages/*"
],
"scripts": {
"build": "yarn workspaces foreach --parallel --verbose --no-private run build",
"build": "yarn workspaces foreach --worktree --parallel --verbose --no-private run build",
"build:clean": "yarn clean && yarn build",
"clean": "yarn workspaces foreach --parallel --verbose --no-private run clean",
"start": "yarn workspaces foreach --parallel --verbose --interlaced --no-private --jobs unlimited run start",
"clean": "yarn workspaces foreach --worktree --parallel --verbose --no-private run clean",
"start": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --no-private --jobs unlimited run start",
"start:test": "yarn start",
"test": "yarn workspaces foreach --parallel --verbose --interlaced --no-private run test",
"lint": "yarn workspaces foreach --parallel --verbose --interlaced --no-private run lint && yarn lint:dependencies",
"test": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --no-private run test",
"lint": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --no-private run lint && yarn lint:dependencies",
"lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx",
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!packages/**\" --ignore-path ../../.gitignore",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:ci": "yarn lint:eslint && yarn lint:misc --check",
"lint:changelogs": "yarn workspaces foreach --parallel --verbose run lint:changelog",
"lint:changelogs": "yarn workspaces foreach --worktree --parallel --verbose run lint:changelog",
"lint:dependencies": "depcheck"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/examples/packages/invoke-snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"packages/*"
],
"scripts": {
"build": "yarn workspaces foreach --parallel --verbose run build",
"build": "yarn workspaces foreach --worktree --parallel --verbose run build",
"build:clean": "yarn clean && yarn build",
"clean": "yarn workspaces foreach --parallel --verbose run clean",
"start": "yarn workspaces foreach --parallel --verbose --interlaced --jobs unlimited run start",
"test": "yarn workspaces foreach --parallel --verbose --interlaced run test",
"lint": "yarn workspaces foreach --parallel --verbose --interlaced run lint && yarn lint:dependencies",
"clean": "yarn workspaces foreach --worktree --parallel --verbose run clean",
"start": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --jobs unlimited run start",
"test": "yarn workspaces foreach --worktree --parallel --verbose --interlaced run test",
"lint": "yarn workspaces foreach --worktree --parallel --verbose --interlaced run lint && yarn lint:dependencies",
"lint:ci": "yarn lint:eslint && yarn lint:misc --check",
"lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-snaps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "jest --passWithNoTests && yarn posttest",
"posttest": "jest-it-up",
"test:ci": "yarn test",
"start": "yarn workspaces foreach --parallel --verbose --interlaced --all --include \"@metamask/test-snaps\" --include \"@metamask/example-snaps\" run start:test",
"start": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --all --include \"@metamask/test-snaps\" --include \"@metamask/example-snaps\" run start:test",
"start:test": "cross-env NODE_ENV=development webpack serve",
"build": "cross-env NODE_ENV=production webpack",
"build:clean": "yarn clean && yarn build",
Expand Down
Loading

0 comments on commit dcb4f0a

Please sign in to comment.