Files
pca-pijac/backend/package.json
Marko Marković 39460df61d Fix prod docker build: native modules and frontend devDeps
Per-package onlyBuiltDependencies so pnpm 10 actually compiles native
modules (isolated-vm, argon2, sqlite3, sharp) — root workspace config
isn't visible when compose mounts a single package into /app.

Frontend container now installs with devDeps (so tsc/vite exist),
prunes after build, and gains a `start` script that serves the build
via vite preview on 0.0.0.0:3000.

Drop obsolete compose `version` key.
2026-04-23 21:52:22 +04:00

31 lines
666 B
JSON

{
"private": true,
"engines": {
"node": ">=22",
"pnpm": ">=10"
},
"packageManager": "pnpm@10.33.2",
"scripts": {
"db:dump": "sqlite3 ../data/data.db < ../schema/clean_and_dump.sql > ../schema/dump.sql",
"db:import": "rm -f ../data/data.db && sqlite3 ../data/data.db < ../schema/dump.sql",
"dev": "nodemon --exec directus start",
"start": "directus start"
},
"dependencies": {
"directus": "11.17.3",
"sqlite3": "6.0.1"
},
"devDependencies": {
"nodemon": "3.1.14",
"uuid": "14.0.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"argon2",
"isolated-vm",
"sharp",
"sqlite3"
]
}
}