From c0fb121e22b16443b5d35437f3bc54d2c6c7d93d Mon Sep 17 00:00:00 2001 From: Seth Silesky <5115498+silesky@users.noreply.github.com> Date: Mon, 6 Mar 2023 13:06:23 -0600 Subject: [PATCH] update yarn --- packages/browser-integration-tests/package.json | 2 +- packages/browser/package.json | 2 +- packages/config/package.json | 2 +- packages/core-integration-tests/package.json | 2 +- packages/core/package.json | 2 +- packages/node-integration-tests/package.json | 2 +- packages/node/package.json | 2 +- packages/test-helpers/package.json | 2 +- scripts/update-lockfile.sh | 8 ++++++-- 9 files changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/browser-integration-tests/package.json b/packages/browser-integration-tests/package.json index b413b2702..f1d0633e4 100644 --- a/packages/browser-integration-tests/package.json +++ b/packages/browser-integration-tests/package.json @@ -15,7 +15,7 @@ "server": "http-server --port 3000", "browser": "playwright test --debug" }, - "packageManager": "yarn@3.2.1", + "packageManager": "yarn@3.4.1", "devDependencies": { "@internal/config": "workspace:^", "@playwright/test": "^1.28.1", diff --git a/packages/browser/package.json b/packages/browser/package.json index 5479ab167..ac28b1624 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -99,5 +99,5 @@ "webpack-bundle-analyzer": "^4.4.2", "webpack-cli": "^4.8.0" }, - "packageManager": "yarn@3.2.1" + "packageManager": "yarn@3.4.1" } diff --git a/packages/config/package.json b/packages/config/package.json index 2a7e750b4..785fc3044 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -3,5 +3,5 @@ "version": "0.0.0", "private": true, "main": "./src", - "packageManager": "yarn@3.2.1" + "packageManager": "yarn@3.4.1" } diff --git a/packages/core-integration-tests/package.json b/packages/core-integration-tests/package.json index 0783c9385..786f8a34a 100644 --- a/packages/core-integration-tests/package.json +++ b/packages/core-integration-tests/package.json @@ -11,7 +11,7 @@ "concurrently": "yarn run -T concurrently", "jest": "yarn run -T jest" }, - "packageManager": "yarn@3.2.1", + "packageManager": "yarn@3.4.1", "devDependencies": { "@internal/config": "workspace:^", "@segment/analytics-core": "workspace:^" diff --git a/packages/core/package.json b/packages/core/package.json index c5037b8a0..dc82a9135 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -30,7 +30,7 @@ "concurrently": "yarn run -T concurrently", "jest": "yarn run -T jest" }, - "packageManager": "yarn@3.2.1", + "packageManager": "yarn@3.4.1", "dependencies": { "@lukeed/uuid": "^2.0.0", "dset": "^3.1.2", diff --git a/packages/node-integration-tests/package.json b/packages/node-integration-tests/package.json index c4e471f08..16efab24b 100644 --- a/packages/node-integration-tests/package.json +++ b/packages/node-integration-tests/package.json @@ -22,5 +22,5 @@ "autocannon": "^7.10.0", "nock": "^13.2.9" }, - "packageManager": "yarn@3.2.1" + "packageManager": "yarn@3.4.1" } diff --git a/packages/node/package.json b/packages/node/package.json index f347f7c75..3b22590f0 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -41,5 +41,5 @@ "@types/node": "^16", "@types/uuid": "^9" }, - "packageManager": "yarn@3.2.1" + "packageManager": "yarn@3.4.1" } diff --git a/packages/test-helpers/package.json b/packages/test-helpers/package.json index d94a2d876..0c4332e4b 100644 --- a/packages/test-helpers/package.json +++ b/packages/test-helpers/package.json @@ -21,5 +21,5 @@ "dependencies": { "tslib": "^2.4.1" }, - "packageManager": "yarn@3.2.1" + "packageManager": "yarn@3.4.1" } diff --git a/scripts/update-lockfile.sh b/scripts/update-lockfile.sh index 472bca00b..a1b0d34e8 100644 --- a/scripts/update-lockfile.sh +++ b/scripts/update-lockfile.sh @@ -1,7 +1,11 @@ #!/bin/bash -# Changesets does not support yarn, so if the resolutions change, we want to commit them as part of the version pipeline. +# # Changesets does not support yarn, so if the resolutions change, we want to commit them as part of the version pipeline. + echo "pwd: $(pwd)" echo "Checking if yarn.lock is up-to-date" -YARN_ENABLE_IMMUTABLE_INSTALLS=false node .yarn/releases/yarn-3.2.1.cjs # https://github.com/changesets/action/issues/170 + +yarn_path=$(grep "yarnPath:" .yarnrc.yml | awk 'NF>1{print $NF}') +YARN_ENABLE_IMMUTABLE_INSTALLS=false node "$yarn_path" # https://github.com/changesets/action/issues/170 git add yarn.lock git status --porcelain +