Skip to content

Commit

Permalink
migrate to yarn v2 and upgrade dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
testshallpass committed Dec 8, 2024
1 parent 0645568 commit db0cb09
Show file tree
Hide file tree
Showing 9 changed files with 9,299 additions and 7,497 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ coverage/
yarn.lock
LICENSE
.gitignore
.npmignore
.npmignore
yarnrc.yml
25 changes: 15 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
name: CI

on:

push:
branches: [ $default-branch ]
branches: [ main ]
pull_request:
branches: [ $default-branch ]

workflow_dispatch:
branches: [ main ]

jobs:
test:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: '20.x'

- name: Enable corepack
run: corepack enable

- name: Install dependencies
run: yarn
- name: yarn test
run: yarn test

- name: Run tests
run: yarn run test
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,12 @@ jsconfig.json
coverage
example/src
example/jsconfig.json
CHANGELOG.md
CHANGELOG.md

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
5 changes: 3 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ npm-debug.log
.eslintignore
.eslintrc.js
babel.config.js
jest.config.ts
jest.config.js
tsconfig.json
README.md
CHANGELOG.md
MIGRATION.md
MIGRATION.md
.yarnrc.yml
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ LICENSE
.gitignore
.npmignore
.eslintignore

tsconfig.json
.yarnrc.yml
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion jest.config.ts → jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* https://jestjs.io/docs/configuration
*/

export default {
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,

Expand Down
37 changes: 18 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,23 @@
},
"homepage": "https://github.com/testshallpass/react-native-dropdownalert#readme",
"devDependencies": {
"@jest/globals": "29.6.3",
"@react-native/babel-preset": "0.73.18",
"@react-native/eslint-config": "0.73.1",
"@react-native/typescript-config": "0.73.1",
"@react-native/babel-preset": "0.76.2",
"@react-native/eslint-config": "0.76.2",
"@react-native/typescript-config": "0.76.2",
"@testing-library/jest-native": "5.4.3",
"@testing-library/react-native": "12.4.1",
"@types/jest": "29.5.11",
"@types/react": "18.2.45",
"@types/react-test-renderer": "18.0.0",
"babel-jest": "29.6.3",
"eslint": "8.55.0",
"jest": "29.6.3",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "0.73.0",
"react-test-renderer": "18.2.0",
"ts-jest": "29.1.1",
"ts-node": "10.9.2",
"typescript": "5.0.4"
}
"@testing-library/react-native": "12.8.1",
"@types/jest": "29.5.14",
"@types/react": "18.3.12",
"@types/react-test-renderer": "18.0.7",
"babel-jest": "29.7.0",
"eslint": "8.57.1",
"jest": "29.7.0",
"prettier": "3.3.3",
"react": "18.3.1",
"react-native": "0.76.2",
"react-test-renderer": "18.3.1",
"ts-jest": "29.2.5",
"typescript": "5.5.4"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit db0cb09

Please sign in to comment.