Skip to content

build: Use yarn v4 #11549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:

- name: Install dependencies
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: yarn install --ignore-engines --frozen-lockfile
run: yarn install --immutable
outputs:
dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }}

Expand Down Expand Up @@ -1451,7 +1451,7 @@ jobs:

- name: Install Dependencies
if: steps.restore-dependencies.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts
run: yarn install --immutable --ignore-scripts

- name: Setup (arm64| ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }})
if: matrix.arch == 'arm64' && !contains(matrix.container, 'alpine') && matrix.target_platform != 'darwin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
with:
node-version-file: 'package.json'
- name: Install dependencies
run: yarn install --ignore-engines --frozen-lockfile
run: yarn install --immutable

- name: Build dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky-test-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
node-version-file: 'package.json'
cache: 'yarn'
- name: Install dependencies
run: yarn install --ignore-engines --frozen-lockfile
run: yarn install --immutable

- name: NX cache
uses: actions/cache/restore@v4
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ packages/deno/lib.deno.d.ts

# gatsby
packages/gatsby/gatsby-node.d.ts

# Yarn v4
.yarn

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"volta": {
"node": "18.18.0",
"yarn": "1.22.19"
"yarn": "4.1.1"
},
"workspaces": [
"packages/angular",
Expand Down Expand Up @@ -140,8 +140,7 @@
},
"resolutions": {
"wrap-ansi": "7.0.0",
"string-width": "4.1.0",
"**/terser/source-map": "0.7.4"
"string-width": "4.1.0"
},
"version": "0.0.0",
"name": "sentry-javascript",
Expand All @@ -151,5 +150,6 @@
"proseWrap": "always",
"singleQuote": true,
"trailingComma": "all"
}
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
},
"dependencies": {
"@sentry-internal/browser-utils": "8.0.0-alpha.9",
"@sentry-internal/feedback": "8.0.0-alpha.9",
"@sentry-internal/feedback-modal": "8.0.0-alpha.9",
"@sentry-internal/feedback-screenshot": "8.0.0-alpha.9",
"@sentry-internal/feedback": "8.0.0-alpha.9",
"@sentry-internal/replay": "8.0.0-alpha.9",
"@sentry-internal/replay-canvas": "8.0.0-alpha.9",
"@sentry/core": "8.0.0-alpha.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
"@rollup/plugin-commonjs": "24.0.0",
"@sentry/core": "8.0.0-alpha.9",
"@sentry/node": "8.0.0-alpha.9",
"@sentry/opentelemetry": "8.0.0-alpha.9",
"@sentry/react": "8.0.0-alpha.9",
"@sentry/types": "8.0.0-alpha.9",
"@sentry/utils": "8.0.0-alpha.9",
"@sentry/opentelemetry": "8.0.0-alpha.9",
"@sentry/vercel-edge": "8.0.0-alpha.9",
"@sentry/webpack-plugin": "2.16.0",
"chalk": "3.0.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/nextjs/test/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ for NEXTJS_VERSION in 13; do
# It was pretty much this issue: https://github.com/yarnpkg/yarn/issues/5275
rm -rf node_modules
yarn cache clean

# We have to use `--ignore-engines` because sucrase claims to need Node 12, even though tests pass just fine on Node 10
yarn --no-lockfile --ignore-engines
yarn --no-lockfile

# if applicable, use local versions of `@sentry/cli` and/or `@sentry/webpack-plugin` (these commands no-op unless
# LINKED_CLI_REPO and/or LINKED_PLUGIN_REPO are set)
Expand Down
1 change: 0 additions & 1 deletion packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/typescript",
"author": "Sentry",
"license": "MIT",
"private": false,
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/craft-pre-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NEW_VERSION="${2}"
# Do not tag and commit changes made by "npm version"
export npm_config_git_tag_version=false

yarn install --frozen-lockfile
yarn install --immutable
# --force-publish - force publish all packages, this will skip the lerna changed check for changed packages and forces a package that didn't have a git diff change to be updated.
# --exact - specify updated dependencies in updated packages exactly (with no punctuation), instead of as semver compatible (with a ^).
# --no-git-tag-version - don't commit changes to package.json files and don't tag the release.
Expand Down
Loading
Loading