Skip to content

Commit ebb488d

Browse files
authored
chore: bump Yarn to 3.4.1 (#914)
We keep getting network failures when running `yarn install`. Yarn v3 handles this much better.
1 parent c5f188d commit ebb488d

File tree

8 files changed

+16947
-12175
lines changed

8 files changed

+16947
-12175
lines changed

.circleci/config.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cache:
5959
save yarn cache: &cache_save_yarn
6060
name: Saving Yarn cache
6161
paths:
62-
- ~/.cache/yarn
62+
- .yarn/cache
6363
- ~/Library/Detox
6464
key: *key_yarn
6565

@@ -105,7 +105,7 @@ jobs:
105105
- restore-cache: *cache_restore_yarn
106106
- run:
107107
name: Install dependencies
108-
command: yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
108+
command: yarn
109109
- save-cache: *cache_save_yarn
110110
- persist_to_workspace:
111111
root: .
@@ -134,7 +134,7 @@ jobs:
134134
- restore-cache: *cache_restore_yarn
135135
- run:
136136
name: Installing Yarn dependencies
137-
command: yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
137+
command: yarn
138138
- save-cache: *cache_save_yarn
139139
- restore-cache: *cache_restore_gradle
140140
- run:
@@ -162,7 +162,7 @@ jobs:
162162
- restore-cache: *cache_restore_yarn
163163
- run:
164164
name: Installing Yarn dependencies
165-
command: yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
165+
command: yarn
166166
- save-cache: *cache_save_yarn
167167
- restore-cache: *cache_restore_pods
168168
- run:
@@ -203,7 +203,7 @@ jobs:
203203
- restore_cache: *cache_restore_yarn
204204
- run:
205205
name: Install dependencies
206-
command: yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
206+
command: yarn
207207
- save_cache: *cache_save_yarn
208208
- run:
209209
name: Bundle JS

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto
2+
*.pbxproj -text
3+
/.yarn/releases/* binary

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
cache: 'yarn'
2525
- name: Install JS dependencies
2626
run: |
27-
yarn ci
27+
yarn
2828
- name: Bundle JS
2929
run: |
3030
yarn bundle:macos
@@ -52,11 +52,10 @@ jobs:
5252
cache: 'yarn'
5353
- name: Install JS dependencies
5454
run: |
55-
yarn ci
55+
yarn
5656
- name: Install Windows test app
5757
run: |
5858
yarn install-windows-test-app -p example/windows
5959
- name: Build
6060
run: |
6161
yarn react-native run-windows --release --arch x64 --logging --no-packager --no-launch --no-deploy --msbuildprops "BundleEntryFile=index.ts" --no-telemetry
62-
working-directory: example/windows

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ msbuild.binlog
4545

4646
# node.js
4747
#
48+
.yarn
49+
!.yarn/releases
4850
node_modules/
4951
npm-debug.log
5052
yarn-error.log

.yarn/releases/yarn-3.4.1.cjs

+873
Large diffs are not rendered by default.

.yarnrc.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
enableTelemetry: false
2+
logFilters:
3+
- code: YN0007 # X must be built because it never has been before or the last one failed
4+
level: discard
5+
- code: YN0008 # X must be rebuilt because its dependency tree changed
6+
level: discard
7+
- code: YN0013 # X can't be found in the cache and will be fetched from the remote registry
8+
level: discard
9+
nodeLinker: node-modules
10+
npmRegistryServer: "https://registry.npmjs.org"
11+
yarnPath: .yarn/releases/yarn-3.4.1.cjs

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"url": "https://github.com/react-native-async-storage/async-storage.git"
3838
},
3939
"scripts": {
40-
"ci": "yarn --pure-lockfile --non-interactive",
4140
"format": "concurrently yarn:format:*",
4241
"format:c": "clang-format -i $(git ls-files '*.cpp' '*.h' '*.m' '*.mm')",
4342
"format:js": "prettier --write $(git ls-files '*.js' '*.json' '*.md' '*.ts' '*.tsx' '*.yml')",
@@ -96,6 +95,7 @@
9695
"semantic-release": "^19.0.0",
9796
"typescript": "^4.5.0"
9897
},
98+
"packageManager": "[email protected]",
9999
"resolutions": {
100100
"npm/chalk": "^4.1.2"
101101
},

0 commit comments

Comments
 (0)