Skip to content

Commit

Permalink
Add Vite 6 to peer deps [publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Nov 26, 2024
1 parent 2b69fdc commit 532dda8
Show file tree
Hide file tree
Showing 14 changed files with 1,128 additions and 1,100 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.1

- Add vite@6 to peer dependency ranges

## 3.0.0

- Add vite@5 to peer dependency ranges
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import baseConfig from "@arnaud-barre/eslint-config";
import tseslint from "typescript-eslint";

export default tseslint.config(...baseConfig);
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"name": "vite-plugin-react-click-to-component",
"type": "module",
"version": "3.0.0",
"version": "3.0.1",
"license": "MIT",
"scripts": {
"postinstall": "cd playground && bun i",
"dev": "scripts/bundle.ts --dev",
"build": "scripts/bundle.ts",
"tsc": "tsc",
"lint": "bun lint-ci --fix --cache",
"lint-ci": "eslint src scripts --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint-ci": "eslint --max-warnings 0",
"prettier": "bun prettier-ci --write",
"prettier-ci": "prettier --ignore-path=.gitignore --check '**/*.{ts,tsx,html,css,json,md,yml}'",
"ci": "tsc && bun lint-ci && bun prettier-ci && bun run build && cd playground && tsc && bun lint-ci && cd ../dist && bun publint"
"ci": "tsc && bun run build && bun lint-ci && bun prettier-ci && cd playground && tsc && bun lint-ci && cd ../dist && bun publint"
},
"prettier": {
"trailingComma": "all"
},
"peerDependencies": {
"react": ">=16",
"vite": "^4 || ^5"
"react": "^18.3.1",
"vite": "^4 || ^5 || ^6"
},
"devDependencies": {
"@arnaud-barre/eslint-config": "^3.1.5",
"@arnaud-barre/tnode": "^0.19.2",
"@types/node": "^18.18.9",
"eslint": "^8.54.0",
"@arnaud-barre/eslint-config": "^5.2.0",
"@arnaud-barre/tnode": "^0.24.0",
"@types/node": "^20.17.8",
"eslint": "^9.15.0",
"prettier": "3.0.3",
"publint": "^0.2.5",
"typescript": "~5.2.2",
"vite": "^5.0.0"
"publint": "^0.2.12",
"typescript": "~5.7.2",
"vite": "^6.0.0"
}
}
4 changes: 0 additions & 4 deletions playground/.eslintrc.cjs

This file was deleted.

Binary file modified playground/bun.lockb
Binary file not shown.
4 changes: 4 additions & 0 deletions playground/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import baseConfig from "@arnaud-barre/eslint-config";
import tseslint from "typescript-eslint";

export default tseslint.config(...baseConfig);
11 changes: 6 additions & 5 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
"type": "module",
"private": true,
"scripts": {
"postinstall": "rm -rf node_modules/vite",
"dev": "vite",
"lint-ci": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
"lint-ci": "eslint --max-warnings 0"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react-swc": "^3.5.0"
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react-swc": "^3.7.2"
}
}
1 change: 0 additions & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { reactClickToComponent } from "../dist/index.mjs";

// eslint-disable-next-line @arnaud-barre/no-default-export
export default defineConfig({
plugins: [react(), reactClickToComponent()],
server: { open: true },
Expand Down
Loading

0 comments on commit 532dda8

Please sign in to comment.