Skip to content

Commit

Permalink
use default react
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 16, 2024
1 parent 58af2ad commit f0b196b
Show file tree
Hide file tree
Showing 6 changed files with 1,664 additions and 1,370 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
pnpm clean
pnpm build
pnpm run-all-checks
pnpm test
pnpm test:build
REACT_CANARY=1 pnpm test
REACT_CANARY=1 pnpm test:build
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
'^swr/immutable$': '<rootDir>/src/immutable/index.ts',
'^swr/subscription$': '<rootDir>/src/subscription/index.ts',
'^swr/mutation$': '<rootDir>/src/mutation/index.ts',
'^swr/_internal$': '<rootDir>/src/_internal/index.ts'
'^swr/_internal$': '<rootDir>/src/_internal/index.ts',
},
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest']
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
"coverage": "jest --coverage",
"test-typing": "tsc --noEmit -p test/type/tsconfig.json && tsc --noEmit -p test/tsconfig.json",
"test": "jest",
"test-canary": "REACT_CANARY=1 jest",
"test:build": "jest --config jest.config.build.js",
"test:e2e": "playwright test",
"run-all-checks": "pnpm types:check && pnpm lint && pnpm test-typing"
Expand Down Expand Up @@ -152,16 +153,16 @@
"lint-staged": "13.2.2",
"next": "^13.4.4",
"prettier": "2.8.8",
"react": "18.3.0-canary-2e470a788-20240214",
"react-dom": "18.3.0-canary-2e470a788-20240214",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "^4.0.9",
"rimraf": "5.0.1",
"semver": "^7.5.1",
"swr": "workspace:*",
"typescript": "5.1.3"
},
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0 || ^18.0.0"
"react": "16.11.0 || ^17.0.0 || ^18.0.0"
},
"prettier": {
"tabWidth": 2,
Expand Down
Loading

0 comments on commit f0b196b

Please sign in to comment.