refactor: update package dependencies and improve PostCSS and Rollup configurations

This commit is contained in:
Marco Beretta 2025-07-19 22:54:18 +02:00
parent f1204531a8
commit 8ba5aa6055
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
4 changed files with 61 additions and 133 deletions

View file

@ -22,53 +22,14 @@
"dev": "rollup -c -w --bundleConfigAsCjs"
},
"peerDependencies": {
"@ariakit/react": "^0.4.15 || ^0.4.16",
"@ariakit/react-core": "^0.4.17",
"@headlessui/react": "^2.1.2",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.2",
"@radix-ui/react-checkbox": "^1.0.3",
"@radix-ui/react-collapsible": "^1.0.3 || ^1.1.11",
"@radix-ui/react-dialog": "^1.0.2",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-hover-card": "^1.0.5",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.0 || ^2.1.7",
"@radix-ui/react-progress": "^1.1.2",
"@radix-ui/react-radio-group": "^1.3.7",
"@radix-ui/react-select": "^2.0.0 || ^2.2.5",
"@radix-ui/react-separator": "^1.0.3 || ^1.1.7",
"@radix-ui/react-slider": "^1.1.1 || ^1.3.5",
"@radix-ui/react-slot": "^1.0.0",
"@radix-ui/react-switch": "^1.0.3 || ^1.2.5",
"@radix-ui/react-tabs": "^1.0.3",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.2.7",
"@react-spring/web": "^9.7.5",
"@tanstack/react-query": "^4.28.0 || ^5.69.0",
"@tanstack/react-table": "^8.11.7",
"@tanstack/react-virtual": "^3.0.0",
"framer-motion": "^11.5.4",
"i18next": "^24.2.2 || ^24.2.3",
"i18next-browser-languagedetector": "^8.0.3 || ^8.0.4",
"jotai": "^2.12.5",
"react": "^18.2.0 || ^19.0.0",
"react-dom": "^18.2.0 || ^19.0.0",
"react-hook-form": "^7.56.4 || ^7.60.0",
"@tanstack/react-query": "^4.28.0 || ^5.69.0",
"i18next": "^24.2.2 || ^24.2.3",
"react-i18next": "^15.4.0 || ^15.4.1",
"react-resizable-panels": "^3.0.2",
"react-textarea-autosize": "^8.4.0"
"jotai": "^2.12.5"
},
"dependencies": {
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
"input-otp": "^1.4.2",
"lucide-react": "^0.394.0",
"match-sorter": "^6.3.4",
"rc-input-number": "^7.4.2",
"tailwind-merge": "^1.9.1"
},
"devDependencies": {
"@ariakit/react": "^0.4.16",
"@ariakit/react-core": "^0.4.17",
"@headlessui/react": "^2.1.2",
@ -92,6 +53,22 @@
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.2.7",
"@react-spring/web": "^9.7.5",
"@tanstack/react-table": "^8.11.7",
"@tanstack/react-virtual": "^3.0.0",
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
"framer-motion": "^11.5.4",
"i18next-browser-languagedetector": "^8.0.4",
"input-otp": "^1.4.2",
"lucide-react": "^0.394.0",
"match-sorter": "^6.3.4",
"rc-input-number": "^7.4.2",
"react-hook-form": "^7.56.4",
"react-resizable-panels": "^3.0.2",
"react-textarea-autosize": "^8.4.0",
"tailwind-merge": "^1.9.1"
},
"devDependencies": {
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-node-resolve": "^15.0.0",
@ -99,25 +76,18 @@
"@rollup/plugin-terser": "^0.4.4",
"@tailwindcss/typography": "^0.5.10",
"@tanstack/react-query": "^5.69.0",
"@tanstack/react-table": "^8.11.7",
"@tanstack/react-virtual": "^3.0.0",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4",
"autoprefixer": "^10.4.20",
"framer-motion": "^11.5.4",
"i18next": "^24.2.3",
"i18next-browser-languagedetector": "^8.0.4",
"jotai": "^2.12.5",
"postcss": "^8.4.31",
"postcss-import": "^15.1.0",
"postcss-preset-env": "^8.5.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.56.4",
"react-i18next": "^15.4.1",
"react-resizable-panels": "^3.0.2",
"react-textarea-autosize": "^8.4.0",
"rimraf": "^5.0.1",
"rollup": "^4.0.0",
"rollup-plugin-peer-deps-external": "^2.2.4",

View file

@ -1,7 +1,18 @@
module.exports = {
plugins: [
require('postcss-import'),
require('postcss-preset-env'),
require('postcss-preset-env')({
stage: 1,
features: {
'nesting-rules': true,
'custom-media-queries': true,
'custom-properties': true,
'is-pseudo-class': false,
},
autoprefixer: {
flexbox: 'no-2009',
},
}),
require('tailwindcss'),
require('autoprefixer'),
],

View file

@ -34,6 +34,9 @@ const plugins = [
inject: true,
minimize: process.env.NODE_ENV === 'production',
modules: false,
config: {
path: './postcss.config.js',
},
}),
typescript({
tsconfig: './tsconfig.json',
@ -76,6 +79,14 @@ export default {
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
return;
}
// Ignore PostCSS warnings about complex selectors
if (
warning.plugin === 'postcss' &&
warning.message &&
warning.message.includes('can not be transformed to an equivalent selector')
) {
return;
}
warn(warning);
},
};