Skip to content

Commit

Permalink
Upgrade monorepo to Yarn Modern (yarn berry - v3.6.4) (#276)
Browse files Browse the repository at this point in the history
* Add gitignore

* upgrade yarn

* Update dependencies in lock

* update website yarn

* Added eslint

* drop eslint version

* update eslintrc
  • Loading branch information
JDMathew authored Nov 4, 2024
1 parent 6bc7100 commit 4632798
Show file tree
Hide file tree
Showing 19 changed files with 29,813 additions and 19,938 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
parserOptions: {
project: ['./tsconfig.json'],
},
extends: ['@react-native'],
plugins: ['jest', 'import'],
ignorePatterns: [
'**/**/metro.config.js',
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ DerivedData
.vscode
coverage
.expo

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.4.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.4.cjs
4 changes: 2 additions & 2 deletions examples/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"typescript": "^5.1.3"
},
"peerDependencies": {
"@react-navigation/native": ">=5.0.0",
"react": "*",
"react-native": "*",
"@react-navigation/native": ">=5.0.0"
"react-native": "*"
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@testing-library/react-native": "^12.3.0",
"@types/jest": "^29.5.10",
"eslint": "8.19.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^3.1.3",
"husky": "^8.0.1",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.1.3"
}
},
"packageManager": "[email protected]"
}
5 changes: 2 additions & 3 deletions packages/animations/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@react-native-ama/animations",
"version": "1.0.1",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand All @@ -23,8 +22,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-ama/internal": "~1.0.1",
"@react-native-ama/core": "~1.0.1"
"@react-native-ama/core": "~1.0.1",
"@react-native-ama/internal": "~1.0.1"
},
"peerDependencies": {
"react": "*",
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "@react-native-ama/core",
"version": "1.0.1",
"description": "Accessible Mobile App Library for React Native",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand Down
9 changes: 4 additions & 5 deletions packages/extras/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@react-native-ama/extras",
"version": "1.0.1",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand All @@ -23,15 +22,15 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-ama/internal": "~1.0.1",
"@react-native-ama/animations": "~1.0.1",
"@react-native-ama/core": "~1.0.1",
"@react-native-ama/animations": "~1.0.1"
"@react-native-ama/internal": "~1.0.1"
},
"peerDependencies": {
"react": "*",
"react-native": ">=0.62.0",
"react-native-reanimated": ">=2.0.0",
"react-native-gesture-handler": ">=2.0.0"
"react-native-gesture-handler": ">=2.0.0",
"react-native-reanimated": ">=2.0.0"
},
"keywords": [
"react-native",
Expand Down
1 change: 0 additions & 1 deletion packages/forms/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@react-native-ama/forms",
"version": "1.0.1",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand Down
1 change: 0 additions & 1 deletion packages/internal/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@react-native-ama/internal",
"version": "1.0.1",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand Down
5 changes: 2 additions & 3 deletions packages/lists/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@react-native-ama/lists",
"version": "1.0.1",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand All @@ -23,8 +22,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-ama/internal": "~1.0.1",
"@react-native-ama/core": "~1.0.1"
"@react-native-ama/core": "~1.0.1",
"@react-native-ama/internal": "~1.0.1"
},
"peerDependencies": {
"expo": ">=47.0.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@react-native-ama/react-native",
"version": "1.0.1",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand All @@ -23,8 +22,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-ama/internal": "~1.0.1",
"@react-native-ama/core": "~1.0.1"
"@react-native-ama/core": "~1.0.1",
"@react-native-ama/internal": "~1.0.1"
},
"peerDependencies": {
"react": "*",
Expand Down
9 changes: 9 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Yarn Berry
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
874 changes: 874 additions & 0 deletions website/.yarn/releases/yarn-3.6.4.cjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions website/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarnPath: .yarn/releases/yarn-3.6.4.cjs
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
},
"engines": {
"node": ">=18.0"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 4632798

Please sign in to comment.