Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: modern yarn (4.0) #1517

Merged
merged 7 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ runs:

- name: Install deps
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
run: yarn install --immutable
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/setup-website-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ runs:

- name: Install website deps
if: steps.yarn-cache-website.outputs.cache-hit != 'true'
run: yarn --cwd website install --frozen-lockfile
run: yarn --cwd website install --immutable
shell: bash
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# General Node.js
node_modules
coverage
*.log
Expand All @@ -6,6 +7,16 @@ build
.idea
.DS_Store

# Yarn 4.x
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Ignore lock files in examples for now
examples/**/yarn.lock
.docusaurus

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
11 changes: 11 additions & 0 deletions examples/basic/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# General Node.js
node_modules/
.expo/
dist/
Expand All @@ -10,5 +11,15 @@ npm-debug.*
*.orig.*
web-build/

# Yarn 4.x
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# macOS
.DS_Store

5 changes: 3 additions & 2 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
"devDependencies": {
"@babel/core": "^7.20.0",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^12.3.0",
"@testing-library/react-native": "^12.3.2",
"@types/react": "~18.2.14",
"jest": "^29.7.0",
"react-test-renderer": "18.2.0",
"typescript": "^5.2.2"
},
"private": true
"private": true,
"packageManager": "yarn@4.0.1"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"MattAgn <matthieua@bam.tech> (https://github.com/MattAgn)"
],
"license": "MIT",
"private": false,
"keywords": [
"react-native",
"react",
Expand Down Expand Up @@ -92,5 +91,6 @@
"build:ts:watch": "yarn build:ts --watch --preserveWatchOutput",
"build": "yarn clean && yarn build:js && yarn build:ts && yarn copy-flowtypes",
"prepare": "yarn build"
}
},
"packageManager": "yarn@4.0.1"
}
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 4.x
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
"last 1 firefox version",
"last 1 safari version"
]
}
},
"packageManager": "yarn@4.0.1"
}