Skip to content

Commit

Permalink
refactor(packages/*): use @vitejs/plugin-react-swc and make all pac…
Browse files Browse the repository at this point in the history
…kage dependencies explicit (#254)
  • Loading branch information
marcalexiei authored Dec 23, 2024
1 parent 2434231 commit f236b75
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 229 deletions.
19 changes: 7 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,15 @@
"license": "MIT",
"devDependencies": {
"@eslint/js": "9.15.0",
"@tanstack/config": "^0.7.0",
"@types/node": "^22.0.0",
"@types/react": "^18.3.13",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^9.15.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.31.0",
"@types/node": "22.10.0",
"eslint": "9.15.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "5.1.0",
"prettier": "^3.2.4",
"turbo": "^2.2.3",
"prettier": "3.4.1",
"turbo": "2.2.3",
"typescript": "5.6.3",
"typescript-eslint": "8.15.0",
"vite": "^5.2.11",
"vitest": "^2.0.0"
"typescript-eslint": "8.15.0"
}
}
2 changes: 1 addition & 1 deletion packages/fs-router-vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"vite": "^5.2.11"
},
"devDependencies": {
"@tanstack/config": "^0.7.11",
"@tanstack/config": "0.7.13",
"@types/babel__core": "^7.20.5",
"vitest": "^2.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy-fn-vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"vite": "^5.2.11"
},
"devDependencies": {
"@tanstack/config": "^0.7.11",
"@tanstack/config": "0.7.13",
"@types/babel__core": "^7.20.5",
"prettier": "^3.2.4",
"vitest": "^2.0.0"
Expand Down
9 changes: 5 additions & 4 deletions packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,21 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"react": ">=16.3.0",
"react-dom": ">=16.3.0"
"react": ">=16.3.0"
},
"dependencies": {
"react-intersection-observer": "^9.13.0",
"vite": "^5.2.11",
"zustand": "4.4.7"
},
"devDependencies": {
"@tanstack/config": "^0.7.11",
"@tanstack/config": "0.7.13",
"@testing-library/jest-dom": "^6.6.0",
"@testing-library/react": "^16.0.0",
"@types/react": "18.3.13",
"@vitejs/plugin-react-swc": "3.7.2",
"react": "18.3.1",
"jsdom": "^25.0.0",
"prettier": "^3.2.4",
"vitest": "^2.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/router/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// <reference types="vite/client" />
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackBuildConfig } from '@tanstack/config/build'
import react from '@vitejs/plugin-react'
import react from '@vitejs/plugin-react-swc'

const config = defineConfig({
plugins: [react()],
Expand Down
8 changes: 5 additions & 3 deletions packages/tuono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@
"web-streams-polyfill": "^4.0.0"
},
"devDependencies": {
"@tanstack/config": "0.7.13",
"@types/babel-traverse": "^6.25.10",
"@types/babel__traverse": "^7.20.6",
"@types/react": "^18.3.13",
"@types/react-dom": "^18.3.0",
"prettier": "^3.2.4",
"@types/react": "18.3.13",
"@types/react-dom": "18.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"vitest": "^2.0.0"
},
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/tuono/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// <reference types="vite/client" />
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackBuildConfig } from '@tanstack/config/build'
import react from '@vitejs/plugin-react'
import react from '@vitejs/plugin-react-swc'

const config = defineConfig({
plugins: [react()],
Expand Down
Loading

0 comments on commit f236b75

Please sign in to comment.