alby-hub/frontend/package.json
Roland d2cebc5c6f
fix: replace react-lottie with lottie-react for Vite 8 compatibility (#2546)
Vite 8 changed CJS default-import interop: with "type": "module" set,
a default import of a CJS dependency now resolves to the whole
module.exports object instead of its .default export. react-lottie is
CJS-only, so <Lottie> received an object as the element type and
crashed LottieLoading/LottieSuccess with "Element type is invalid".

Swap to the maintained, ESM-built lottie-react, aliasing it to its ES
build since its browser field points at a UMD build with the same
interop hazard. No other dependency is affected by the interop change.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-12 23:52:50 +07:00

82 lines
3 KiB
JSON

{
"name": "frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev:http": "yarn prepare:http && vite --force",
"dev:wails": "yarn prepare:wails && vite",
"build:http": "yarn prepare:http && tsc && vite build",
"build:wails": "yarn prepare:wails && tsc && vite build",
"prepare:wails": "shx cp ./platform_specific/wails/src/utils/*.ts src/utils/",
"prepare:http": "shx cp ./platform_specific/http/src/utils/*.ts src/utils/",
"lint": "yarn lint:js && yarn tsc:compile && yarn format:fix --report-unused-disable-directives --max-warnings 0",
"lint:js": "eslint src --max-warnings 0",
"lint:js:fix": "eslint src --fix",
"tsc:compile": "tsc --noEmit",
"format": "prettier --check '**/*.(md|json)' 'src/**/*.(js|ts|tsx)' '!src/assets/**/*.json' 'platform_specific/**/*.ts'",
"format:fix": "prettier --loglevel silent --write '**/*.(md|json)' 'src/**/*.(js|ts|tsx)' '!src/assets/**/*.json' 'platform_specific/**/*.ts'",
"preview": "vite preview",
"prepare": "cd .. && husky frontend/.husky"
},
"dependencies": {
"@base-ui/react": "^1.5.0",
"@fontsource-variable/figtree": "^5.3.0",
"@fontsource-variable/inter": "^5.3.0",
"@getalby/lightning-tools": "^8.1.0",
"@getalby/sdk": "^8.0.3",
"@scure/bip39": "^2.2.0",
"@stepperize/react": "^6.1.0",
"bitcoin-address-validation": "^3.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"compare-versions": "^6.1.1",
"date-fns": "^4.1.0",
"dayjs": "^1.11.20",
"embla-carousel-react": "^8.6.0",
"lottie-react": "^2.4.1",
"lucide-react": "^1.28.0",
"qr-code-styling": "^1.9.2",
"radix-ui": "^1.4.3",
"react": "^19.2.6",
"react-day-picker": "^9.14.0",
"react-dom": "^19.2.6",
"react-router": "^7.18.2",
"sonner": "^2.0.7",
"swr": "^2.4.1",
"tailwind-merge": "^3.6.0",
"tw-animate-css": "^1.4.0",
"vaul": "^1.1.2",
"zustand": "^5.0.12"
},
"devDependencies": {
"@commitlint/cli": "^20.5.3",
"@commitlint/config-conventional": "^21.2.0",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.2.4",
"@types/node": "^25.9.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react-swc": "^4.3.1",
"eslint": "^10.4.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
"husky": "^9.0.11",
"lint-staged": "^16.4.0",
"prettier": "3.8.3",
"shx": "^0.4.0",
"tailwindcss": "^4.3.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.61.0",
"vite": "^8.2.1",
"vite-plugin-pwa": "^1.3.0"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}