Skip to content

Commit d75913f

Browse files
authored
chore: Update to Yarn 4, remove segmented-control patch (#885)
1 parent bc4c496 commit d75913f

File tree

7 files changed

+15757
-11185
lines changed

7 files changed

+15757
-11185
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# - rn/yarn_install
1919
# fails with Error untarring cache: Error extracting tarball /var/folders/bq/mjrgbpkx5h1g_b22fpv0tlzc0000gn/T/cache376822577 : tmp/yarn/: Cannot extract through symlink tmp/yarn tmp/yarn/v6/: Cannot extract through symlink tmp/yarn/v6 tmp/yarn/v6/.tmp/: Cannot extract through symlink tmp/yarn/v6/.tmp tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel/code-frame/: Cannot extract: exit status 1
2020
- run:
21-
command: yarn install --frozen-lockfile
21+
command: yarn install --immutable
2222
name: yarn install
2323
- run:
2424
command: yarn lint
@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838
- checkout
3939
- run:
40-
command: yarn install --frozen-lockfile
40+
command: yarn install --immutable
4141
name: yarn install
4242
- run:
4343
command: (cd example && RCT_NEW_ARCH_ENABLED=1 npx pod-install)
@@ -62,7 +62,7 @@ jobs:
6262
device: 'iPhone 14'
6363
# - rn/yarn_install
6464
- run:
65-
command: yarn install --frozen-lockfile && npx patch-package
65+
command: yarn install --immutable
6666
name: yarn install
6767
- run:
6868
command: yarn bundle:ios
@@ -112,7 +112,7 @@ jobs:
112112
command: npm install --global yarn
113113
name: install yarn
114114
- run:
115-
command: yarn install --frozen-lockfile && npx patch-package
115+
command: yarn install --immutable
116116
name: yarn install
117117
- run:
118118
command: yarn bundle:android
@@ -154,7 +154,7 @@ jobs:
154154
command: npm install --global yarn
155155
name: install yarn
156156
- run:
157-
command: yarn install --frozen-lockfile && npx patch-package
157+
command: yarn install --immutable
158158
name: yarn install
159159
- run:
160160
command: yarn bundle:android
@@ -179,7 +179,7 @@ jobs:
179179
# - rn/yarn_install
180180
# fails with Error untarring cache: Error extracting tarball /var/folders/bq/mjrgbpkx5h1g_b22fpv0tlzc0000gn/T/cache376822577 : tmp/yarn/: Cannot extract through symlink tmp/yarn tmp/yarn/v6/: Cannot extract through symlink tmp/yarn/v6 tmp/yarn/v6/.tmp/: Cannot extract through symlink tmp/yarn/v6/.tmp tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel/code-frame/: Cannot extract: exit status 1
181181
- run:
182-
command: yarn install --frozen-lockfile
182+
command: yarn install --immutable
183183
name: yarn install
184184
- run:
185185
command: npx semantic-release

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,7 @@ buck-out/
6060
# CocoaPods
6161
example/ios/Pods/
6262

63-
.xcode.env
63+
.xcode.env
64+
65+
# Yarn
66+
.yarn/install-state.gz

.yarn/releases/yarn-4.1.1.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.1.1.cjs

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
},
6868
"homepage": "https://github.com/react-native-community/datetimepicker#readme",
6969
"devDependencies": {
70-
"@react-native-segmented-control/segmented-control": "^2.4.0",
70+
"@react-native-segmented-control/segmented-control": "^2.5.2",
7171
"@react-native/eslint-config": "^0.72.2",
7272
"@react-native/metro-config": "^0.73.2",
7373
"@semantic-release/git": "^10.0.1",
@@ -82,8 +82,6 @@
8282
"jest": "^29.5.0",
8383
"moment": "^2.24.0",
8484
"moment-timezone": "^0.5.41",
85-
"patch-package": "^6.4.7",
86-
"postinstall-postinstall": "^2.1.0",
8785
"prettier": "^2.8.8",
8886
"react": "18.2.0",
8987
"react-native": "^0.72.7",
@@ -103,5 +101,6 @@
103101
"android": {
104102
"javaPackageName": "com.reactcommunity.rndatetimepicker"
105103
}
106-
}
104+
},
105+
"packageManager": "[email protected]"
107106
}

patches/@react-native-segmented-control+segmented-control+2.4.0.patch

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)