Skip to content

Commit

Permalink
chore: adjust dependencies for vite 6 compatibility
Browse files Browse the repository at this point in the history
The polyfill plugin works with vite 6 but currently no release is
available, so override the peer dependencies.

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jan 10, 2025
1 parent 27e454c commit efdc059
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 29 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 27 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
{
"name": "@nextcloud/vite-config",
"version": "1.4.2",
"description": "Shared Vite configuration for Nextcloud apps and libraries",
"author": {
"name": "Ferdinand Thiessen",
"email": "[email protected]"
},
"homepage": "https://github.com/nextcloud/nextcloud-vite-config",
"bugs": {
"url": "https://github.com/nextcloud/nextcloud-vite-config/issues"
},
"homepage": "https://github.com/nextcloud/nextcloud-vite-config",
"license": "AGPL-3.0-or-later",
"version": "1.4.2",
"author": {
"name": "Ferdinand Thiessen",
"email": "[email protected]"
},
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/",
"LICENSES",
"banner-template.txt"
],
"scripts": {
"build": "tsc",
"build:doc": "typedoc --out dist/doc lib/index.ts && touch dist/doc/.nojekyll",
Expand All @@ -29,10 +34,8 @@
"test": "vitest run",
"test:coverage": "vitest run --coverage.enabled --coverage.all"
},
"peerDependencies": {
"browserslist": ">=4.0",
"sass": ">=1.60",
"vite": "^4 || ^5"
"eslintConfig": {
"extends": "@nextcloud/eslint-config/typescript"
},
"dependencies": {
"@rollup/plugin-replace": "^6.0.2",
Expand All @@ -53,20 +56,22 @@
"@types/node": "^22.10.5",
"@vitest/coverage-v8": "^2.1.8",
"typedoc": "^0.27.6",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.0.3"
"vitest": "^2.1.8"
},
"peerDependencies": {
"browserslist": ">=4.0",
"sass": ">=1.60",
"vite": "^4 || ^5 || ^6"
},
"files": [
"dist/",
"LICENSES",
"banner-template.txt"
],
"engines": {
"node": "^20",
"node": "^20 || ^22",
"npm": "^10"
},
"eslintConfig": {
"extends": "@nextcloud/eslint-config/typescript"
"overrides": {
"vite-plugin-node-polyfills": {
"vite": "^4 || ^5 || ^6"
}
}
}

0 comments on commit efdc059

Please sign in to comment.