Files
pca-pijac/frontend/package.json
Marko Marković da8a7f17a4 Make docker startup work on a cold cache
Frontend: tsc was running before vite, but the routeTree.gen.ts that
the routes import is generated by the Vite plugin at startup — fresh
container had no cache, so tsc failed before vite ever ran. Reverse
the order: vite first (generates routeTree), then tsc --noEmit
validates types.

Backend: run `directus database migrate:latest` before start; the
deployed SQLite is on an old schema (Directus 10.x) and `directus
start` aborts on the missing `searchable` column.

Both services: set CI=true so pnpm doesn't prompt for `node_modules`
purge on a non-TTY container, and use `sh -ec` so a failed step halts
the script instead of falling through to `pnpm run start`.
2026-04-23 22:23:26 +04:00

52 lines
1.4 KiB
JSON

{
"name": "frontend",
"version": "0.1.0",
"private": true,
"type": "module",
"engines": {
"node": ">=22",
"pnpm": ">=10"
},
"packageManager": "pnpm@10.33.2",
"scripts": {
"dev": "vite",
"build": "vite build && tsc -b --noEmit",
"preview": "vite preview",
"start": "vite preview --host 0.0.0.0 --port 3000",
"typecheck": "tsc -b --noEmit",
"format": "prettier --ignore-unknown --write .",
"format:check": "prettier --check ."
},
"dependencies": {
"@icons-pack/react-simple-icons": "13.13.0",
"@radix-ui/react-dropdown-menu": "2.1.16",
"@radix-ui/react-label": "2.1.8",
"@radix-ui/react-separator": "1.1.8",
"@radix-ui/react-slot": "1.2.4",
"@tanstack/react-query": "5.100.1",
"@tanstack/react-router": "1.168.23",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"iso-3166": "4.4.0",
"lucide-react": "1.9.0",
"react": "19.2.5",
"react-dom": "19.2.5",
"react-helmet-async": "3.0.0",
"tailwind-merge": "3.5.0",
"tw-animate-css": "1.4.0"
},
"devDependencies": {
"@tailwindcss/vite": "4.2.4",
"@tanstack/router-plugin": "1.167.22",
"@types/node": "25.6.0",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "6.0.1",
"prettier": "3.8.3",
"prettier-plugin-organize-imports": "4.3.0",
"tailwindcss": "4.2.4",
"typescript": "6.0.3",
"vite": "8.0.10"
}
}