Files
spacedrive/package.json
slvnlrt 18bf94baec fix(ui): install maplibre-gl at root for vite module resolution
maplibre-gl was declared as a dependency in packages/interface/package.json
but bun installed it only in packages/interface/node_modules/. Vite resolves
imports from root node_modules, so LocationMap.tsx dynamic import failed
with "Failed to resolve import maplibre-gl".

Add maplibre-gl@^4.7.1 to root package.json so bun hoists it to root
node_modules where vite can find it. Version locked to ^4 to match the
existing interface package constraint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 23:51:45 +01:00

58 lines
1.4 KiB
JSON

{
"name": "spacedrive",
"private": true,
"scripts": {
"preinstall": "npx only-allow bun",
"typecheck": "bun run --filter @sd/tauri typecheck"
},
"devDependencies": {
"@types/react": "~19.1.10",
"@types/react-dom": "~19.1.10",
"@babel/plugin-syntax-import-assertions": "^7.24.0",
"@cspell/dict-rust": "^4.0.2",
"@cspell/dict-typescript": "^3.1.2",
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"@taplo/cli": "^0.7.0",
"cspell": "^8.6.0",
"node-gyp": "^12.1.0",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"turbo": "^1.12.5",
"turbo-ignore": "^1.12.5",
"typescript": "^5.6.2",
"vite": "^5.4.9"
},
"engines": {
"bun": ">=1.3.0",
"node": ">=18.18 <19 || >=20.1"
},
"eslintConfig": {
"root": true
},
"packageManager": "bun@1.3.0",
"overrides": {
"@types/node": ">18.18.x",
"@types/react": "~19.1.10",
"@types/react-dom": "~19.1.10",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-router": "=6.20.1",
"react-router-dom": "=6.20.1",
"@remix-run/router": "=1.13.1",
"@contentlayer/cli": "=0.3.4",
"tailwindcss-animate": "=1.0.7",
"@sinclair/typebox": "^0.34.41"
},
"workspaces": [
"packages/*",
"apps/*",
"scripts",
".github/actions/*"
],
"dependencies": {
"class-variance-authority": "^0.7.1",
"gray-matter": "^4.0.3",
"maplibre-gl": "^4.7.1",
"react": "19.1.0"
}
}