Skip to content

Commit 532dda8

Browse files
committed
Add Vite 6 to peer deps [publish]
1 parent 2b69fdc commit 532dda8

14 files changed

+1128
-1100
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.0.1
4+
5+
- Add vite@6 to peer dependency ranges
6+
37
## 3.0.0
48

59
- Add vite@5 to peer dependency ranges

bun.lockb

-577 Bytes
Binary file not shown.

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import baseConfig from "@arnaud-barre/eslint-config";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(...baseConfig);

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
22
"name": "vite-plugin-react-click-to-component",
33
"type": "module",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"license": "MIT",
66
"scripts": {
77
"postinstall": "cd playground && bun i",
88
"dev": "scripts/bundle.ts --dev",
99
"build": "scripts/bundle.ts",
1010
"tsc": "tsc",
1111
"lint": "bun lint-ci --fix --cache",
12-
"lint-ci": "eslint src scripts --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
12+
"lint-ci": "eslint --max-warnings 0",
1313
"prettier": "bun prettier-ci --write",
1414
"prettier-ci": "prettier --ignore-path=.gitignore --check '**/*.{ts,tsx,html,css,json,md,yml}'",
15-
"ci": "tsc && bun lint-ci && bun prettier-ci && bun run build && cd playground && tsc && bun lint-ci && cd ../dist && bun publint"
15+
"ci": "tsc && bun run build && bun lint-ci && bun prettier-ci && cd playground && tsc && bun lint-ci && cd ../dist && bun publint"
1616
},
1717
"prettier": {
1818
"trailingComma": "all"
1919
},
2020
"peerDependencies": {
21-
"react": ">=16",
22-
"vite": "^4 || ^5"
21+
"react": "^18.3.1",
22+
"vite": "^4 || ^5 || ^6"
2323
},
2424
"devDependencies": {
25-
"@arnaud-barre/eslint-config": "^3.1.5",
26-
"@arnaud-barre/tnode": "^0.19.2",
27-
"@types/node": "^18.18.9",
28-
"eslint": "^8.54.0",
25+
"@arnaud-barre/eslint-config": "^5.2.0",
26+
"@arnaud-barre/tnode": "^0.24.0",
27+
"@types/node": "^20.17.8",
28+
"eslint": "^9.15.0",
2929
"prettier": "3.0.3",
30-
"publint": "^0.2.5",
31-
"typescript": "~5.2.2",
32-
"vite": "^5.0.0"
30+
"publint": "^0.2.12",
31+
"typescript": "~5.7.2",
32+
"vite": "^6.0.0"
3333
}
3434
}

playground/.eslintrc.cjs

Lines changed: 0 additions & 4 deletions
This file was deleted.

playground/bun.lockb

3.84 KB
Binary file not shown.

playground/eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import baseConfig from "@arnaud-barre/eslint-config";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(...baseConfig);

playground/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
"type": "module",
44
"private": true,
55
"scripts": {
6+
"postinstall": "rm -rf node_modules/vite",
67
"dev": "vite",
7-
"lint-ci": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
8+
"lint-ci": "eslint --max-warnings 0"
89
},
910
"dependencies": {
10-
"react": "^18.2.0",
11-
"react-dom": "^18.2.0"
11+
"react": "^18.3.1",
12+
"react-dom": "^18.3.1"
1213
},
1314
"devDependencies": {
14-
"@types/react-dom": "^18.2.17",
15-
"@vitejs/plugin-react-swc": "^3.5.0"
15+
"@types/react-dom": "^18.3.1",
16+
"@vitejs/plugin-react-swc": "^3.7.2"
1617
}
1718
}

playground/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react-swc";
33
import { reactClickToComponent } from "../dist/index.mjs";
44

5-
// eslint-disable-next-line @arnaud-barre/no-default-export
65
export default defineConfig({
76
plugins: [react(), reactClickToComponent()],
87
server: { open: true },

0 commit comments

Comments
 (0)