Skip to content

Commit 656c568

Browse files
authored
Yarn min age (#8165)
* yarn min age + node verson * Yarn min age * yarn min age + node verson
1 parent b195c17 commit 656c568

File tree

6 files changed

+1539
-1523
lines changed

6 files changed

+1539
-1523
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ enableGlobalCache: false
44

55
nmHoistingLimits: workspaces
66

7+
npmMinimalAgeGate: 14d
8+
79
nodeLinker: node-modules
810

911
npmRegistryServer: "https://npm.dev.wixpress.com"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@
151151
},
152152
"lint-staged": {
153153
"*.{js,ts,tsx}": "eslint --fix",
154-
"*.{h,m,mm}": "node ./scripts/check-clang-format"
154+
"*.{h,m,mm}": "node ./scripts/check-clang-format",
155+
"yarn.lock": "./scripts/clean-yarn-lock.sh"
155156
},
156157
"codegenConfig": {
157158
"name": "rnnavigation",

scripts/ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
node ./scripts/changeReactNativeVersion.js || true
66

77
corepack enable
8-
corepack prepare yarn@3.6.1 --activate
8+
corepack prepare yarn@4.12.0 --activate
99

1010
# Install dependencies (base step for all CI jobs)
1111
yarn install --no-immutable

scripts/clean-yarn-lock.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
# Removes private registry URLs from yarn.lock before commit
3+
4+
# Remove ::__archiveUrl=... suffix from resolution lines
5+
sed -i '' 's/::__archiveUrl=[^"]*//g' yarn.lock
6+
7+
# Remove URL-encoded version for patch entries
8+
sed -i '' 's/%3A%3A__archiveUrl=[^#]*//g' yarn.lock
9+
10+
# Stage the cleaned file
11+
git add yarn.lock
12+
13+

0 commit comments

Comments
 (0)