Skip to content

Commit

Permalink
chore: update deps (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
potty authored Jul 2, 2023
1 parent 1d3e71e commit 6f444aa
Show file tree
Hide file tree
Showing 9 changed files with 4,878 additions and 4,598 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,25 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run lint
run: yarn lint
- name: Run tests
run: yarn test
- name: Checkout
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run lint
run: pnpm lint

- name: Run tests
run: pnpm test
1 change: 1 addition & 0 deletions jest-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom'
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom'
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts']
}
47 changes: 25 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist",
"prebuild": "yarn clean",
"prebuild": "pnpm clean",
"build": "rollup -c",
"lint": "yarn lint:check --fix && yarn prettier",
"lint": "pnpm lint:check --fix && pnpm prettier",
"lint:check": "eslint ./src --ext .tsx,.ts --report-unused-disable-directives",
"prettier": "prettier --write './src/**/*.ts' './src/**/*.tsx'",
"release": "np",
"test": "jest --runInBand",
"test:coverage": "jest --runInBand --coverage",
"test:watch": "yarn test:coverage -- --watchAll",
"prepublishOnly": "yarn lint && yarn test && yarn clean && yarn build",
"test:watch": "pnpm test:coverage -- --watchAll",
"prepublishOnly": "pnpm lint && pnpm test && pnpm clean && pnpm build",
"prepare": "husky install"
},
"files": [
Expand All @@ -34,32 +34,35 @@
"react": "^16.8.0 || ^17 || ^18"
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.4.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.3",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/testing-library__jest-dom": "^5.14.6",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"lint-staged": "^13.1.0",
"prettier": "^2.8.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"lint-staged": "^13.2.3",
"prettier": "^2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^2.7.5",
"rollup-plugin-sizes": "^1.0.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.34.1",
"ts-jest": "^29.0.5",
"typescript": "^4.0.2"
"rollup": "^3.26.0",
"rollup-plugin-sizes": "^1.0.5",
"rollup-plugin-typescript2": "^0.35.0",
"ts-jest": "^29.1.1",
"tslib": "^2.6.0",
"typescript": "^5.1.6"
},
"husky": {
"hooks": {
Expand Down
Loading

0 comments on commit 6f444aa

Please sign in to comment.