Skip to content

Commit db0cb09

Browse files
committed
migrate to yarn v2 and upgrade dev deps
1 parent 0645568 commit db0cb09

File tree

9 files changed

+9299
-7497
lines changed

9 files changed

+9299
-7497
lines changed

.eslintignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ coverage/
77
yarn.lock
88
LICENSE
99
.gitignore
10-
.npmignore
10+
.npmignore
11+
yarnrc.yml

.github/workflows/ci.yml

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
name: CI
22

33
on:
4-
54
push:
6-
branches: [ $default-branch ]
5+
branches: [ main ]
76
pull_request:
8-
branches: [ $default-branch ]
9-
10-
workflow_dispatch:
7+
branches: [ main ]
118

129
jobs:
1310
test:
1411
runs-on: macos-latest
12+
1513
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v2
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v4
1818
with:
19-
node-version: 18
19+
node-version: '20.x'
20+
21+
- name: Enable corepack
22+
run: corepack enable
23+
2024
- name: Install dependencies
2125
run: yarn
22-
- name: yarn test
23-
run: yarn test
26+
27+
- name: Run tests
28+
run: yarn run test

.gitignore

+9-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,12 @@ jsconfig.json
5858
coverage
5959
example/src
6060
example/jsconfig.json
61-
CHANGELOG.md
61+
CHANGELOG.md
62+
63+
# Yarn
64+
.yarn/*
65+
!.yarn/patches
66+
!.yarn/plugins
67+
!.yarn/releases
68+
!.yarn/sdks
69+
!.yarn/versions

.npmignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ npm-debug.log
1717
.eslintignore
1818
.eslintrc.js
1919
babel.config.js
20-
jest.config.ts
20+
jest.config.js
2121
tsconfig.json
2222
README.md
2323
CHANGELOG.md
24-
MIGRATION.md
24+
MIGRATION.md
25+
.yarnrc.yml

.prettierignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ LICENSE
99
.gitignore
1010
.npmignore
1111
.eslintignore
12-
12+
tsconfig.json
13+
.yarnrc.yml

.yarnrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

jest.config.ts renamed to jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://jestjs.io/docs/configuration
44
*/
55

6-
export default {
6+
module.exports = {
77
// All imported modules in your tests should be mocked automatically
88
// automock: false,
99

package.json

+18-19
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,23 @@
3232
},
3333
"homepage": "https://github.com/testshallpass/react-native-dropdownalert#readme",
3434
"devDependencies": {
35-
"@jest/globals": "29.6.3",
36-
"@react-native/babel-preset": "0.73.18",
37-
"@react-native/eslint-config": "0.73.1",
38-
"@react-native/typescript-config": "0.73.1",
35+
"@react-native/babel-preset": "0.76.2",
36+
"@react-native/eslint-config": "0.76.2",
37+
"@react-native/typescript-config": "0.76.2",
3938
"@testing-library/jest-native": "5.4.3",
40-
"@testing-library/react-native": "12.4.1",
41-
"@types/jest": "29.5.11",
42-
"@types/react": "18.2.45",
43-
"@types/react-test-renderer": "18.0.0",
44-
"babel-jest": "29.6.3",
45-
"eslint": "8.55.0",
46-
"jest": "29.6.3",
47-
"prettier": "2.8.8",
48-
"react": "18.2.0",
49-
"react-native": "0.73.0",
50-
"react-test-renderer": "18.2.0",
51-
"ts-jest": "29.1.1",
52-
"ts-node": "10.9.2",
53-
"typescript": "5.0.4"
54-
}
39+
"@testing-library/react-native": "12.8.1",
40+
"@types/jest": "29.5.14",
41+
"@types/react": "18.3.12",
42+
"@types/react-test-renderer": "18.0.7",
43+
"babel-jest": "29.7.0",
44+
"eslint": "8.57.1",
45+
"jest": "29.7.0",
46+
"prettier": "3.3.3",
47+
"react": "18.3.1",
48+
"react-native": "0.76.2",
49+
"react-test-renderer": "18.3.1",
50+
"ts-jest": "29.2.5",
51+
"typescript": "5.5.4"
52+
},
53+
"packageManager": "yarn@4.5.1"
5554
}

0 commit comments

Comments
 (0)