Skip to content

Commit 307c0c5

Browse files
authored
chore: migrate to yarn 4 and replace lefthook with official package (#159)
1 parent 73777b2 commit 307c0c5

8 files changed

Lines changed: 5020 additions & 5419 deletions

File tree

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

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

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

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

.yarn/releases/yarn-3.6.1.cjs

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

.yarn/releases/yarn-4.11.0.cjs

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

.yarnrc.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
nodeLinker: node-modules
22
nmHoistingLimits: workspaces
33

4-
plugins:
5-
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
6-
spec: "@yarnpkg/plugin-interactive-tools"
7-
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
8-
spec: "@yarnpkg/plugin-workspace-tools"
9-
10-
yarnPath: .yarn/releases/yarn-3.6.1.cjs
4+
yarnPath: .yarn/releases/yarn-4.11.0.cjs

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
"@eslint/compat": "^1.3.2",
7777
"@eslint/eslintrc": "^3.3.1",
7878
"@eslint/js": "^9.35.0",
79-
"@evilmartians/lefthook": "^1.12.3",
8079
"@expo/config-plugins": "^55.0.6",
8180
"@react-native-community/cli": "20.0.1",
8281
"@react-native/babel-preset": "0.84.1",
@@ -91,6 +90,7 @@
9190
"eslint-config-prettier": "^10.1.8",
9291
"eslint-plugin-prettier": "^5.5.4",
9392
"jest": "^29.7.0",
93+
"lefthook": "^2.0.3",
9494
"prettier": "^3.6.2",
9595
"react": "19.2.3",
9696
"react-native": "0.84.1",
@@ -112,7 +112,7 @@
112112
"workspaces": [
113113
"example"
114114
],
115-
"packageManager": "yarn@3.6.1",
115+
"packageManager": "yarn@4.11.0",
116116
"jest": {
117117
"preset": "react-native",
118118
"modulePathIgnorePatterns": [
@@ -194,8 +194,14 @@
194194
"includesGeneratedCode": true
195195
},
196196
"create-react-native-library": {
197-
"languages": "kotlin-objc",
198197
"type": "fabric-view",
199-
"version": "0.54.6"
198+
"languages": "kotlin-objc",
199+
"tools": [
200+
"eslint",
201+
"jest",
202+
"lefthook",
203+
"release-it"
204+
],
205+
"version": "0.57.2"
200206
}
201207
}

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"build:ios": {
2323
"env": [
2424
"RCT_NEW_ARCH_ENABLED",
25+
"RCT_REMOVE_LEGACY_ARCH",
2526
"RCT_USE_RN_DEP",
2627
"RCT_USE_PREBUILT_RNCORE"
2728
],

0 commit comments

Comments
 (0)