Skip to content

Commit

Permalink
chore: yarn berry (#34)
Browse files Browse the repository at this point in the history
* chore: switch to yarn berry

* chore: enable corepack

* chore: remove --force
  • Loading branch information
mdjastrzebski authored May 15, 2024
1 parent a9e0aad commit e4c3371
Show file tree
Hide file tree
Showing 15 changed files with 22,876 additions and 16,507 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test-example-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ npm-debug.log
yarn-debug.log
yarn-error.log

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

**/*/.yarn
!**/*/.yarn/patches
!**/*/.yarn/plugins
!**/*/.yarn/releases
!**/*/.yarn/sdks
!**/*/.yarn/versions

# BUCK
buck-out/
\.buckd/
Expand All @@ -66,4 +81,6 @@ lib/
# Reassure output files
.reassure/

# Turbo repo
.turbo/

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
15 changes: 15 additions & 0 deletions examples/native-expo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,20 @@ yarn-error.*
# typescript
*.tsbuildinfo

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

**/*/.yarn
!**/*/.yarn/patches
!**/*/.yarn/plugins
!**/*/.yarn/releases
!**/*/.yarn/sdks
!**/*/.yarn/versions

# Reassure
.reassure/
2 changes: 1 addition & 1 deletion examples/native-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/react": "^18.2.28",
"jest": "^29.7.0",
"react-test-renderer": "^18.2.0",
"reassure": "^1.0.0-beta",
"reassure": "^1.0.0-rc.4",
"typescript": "^5.2.2"
},
"private": true
Expand Down
4 changes: 2 additions & 2 deletions examples/native-expo/reassure-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ BASELINE_BRANCH=${BASELINE_BRANCH:="main"}

# Gather baseline perf measurements
git switch "$BASELINE_BRANCH"
yarn install --force
yarn install
yarn reassure --baseline

# Gather current perf measurements & compare results
git switch -
yarn install --force
yarn install
yarn reassure --branch
18,292 changes: 10,634 additions & 7,658 deletions examples/native-expo/yarn.lock

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions examples/native/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ node_modules/
npm-debug.log
yarn-error.log

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

**/*/.yarn
!**/*/.yarn/patches
!**/*/.yarn/plugins
!**/*/.yarn/releases
!**/*/.yarn/sdks
!**/*/.yarn/versions

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
Expand Down
1 change: 1 addition & 0 deletions examples/native/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
5 changes: 3 additions & 2 deletions examples/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"reassure": "1.0.0-beta",
"reassure": "1.0.0-rc.4",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
},
"packageManager": "yarn@4.2.2"
}
4 changes: 2 additions & 2 deletions examples/native/reassure-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ git fetch origin
# Gather baseline perf measurements
git switch "$BASELINE_BRANCH"

yarn install --force
yarn install
yarn reassure --baseline

# Gather current perf measurements & compare results
git switch --detach -

yarn install --force
yarn install
yarn reassure --branch
Loading

0 comments on commit e4c3371

Please sign in to comment.