Turbopack requires native SWC bindings unavailable on o2switch's old glibc, so force webpack for production builds. NODE_ENV=production on o2switch's shell also caused npm to skip devDependencies needed at build time (Tailwind, PostCSS), so deploy now installs with --include=dev. yt-dlp's standalone PyInstaller binary self-extracts to noexec /tmp and fails to mmap its bundled shared libs there, and o2switch's system python3 (3.6) is too old for the plain zipapp. Revert to the zipapp and invoke it explicitly through a configurable PYTHON_BIN, set to o2switch's newer Python 3.11 in .env.prod. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
69 lines
1.8 KiB
JSON
69 lines
1.8 KiB
JSON
{
|
|
"name": "ombrora-ytdlp",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"directories": {
|
|
"doc": "docs"
|
|
},
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build --webpack",
|
|
"start": "node server.js",
|
|
"test": "jest",
|
|
"worker": "tsx worker/index.ts",
|
|
"worker:cleanup": "tsx worker/cron-cleanup.ts",
|
|
"worker:pm2:start": "pm2 start ecosystem.config.cjs",
|
|
"worker:pm2:stop": "pm2 stop ecosystem.config.cjs",
|
|
"worker:pm2:restart": "pm2 restart ecosystem.config.cjs",
|
|
"worker:pm2:status": "pm2 status ombrora-worker",
|
|
"worker:pm2:logs": "pm2 logs ombrora-worker",
|
|
"db:migrate": "prisma migrate dev",
|
|
"db:migrate:deploy": "prisma migrate deploy",
|
|
"db:generate": "prisma generate",
|
|
"deploy": "bash scripts/deploy.sh"
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"transform": {
|
|
"^.+\\.tsx?$": "@swc/jest"
|
|
},
|
|
"moduleNameMapper": {
|
|
"^@/(.*)$": "<rootDir>/src/$1"
|
|
},
|
|
"testMatch": [
|
|
"**/__tests__/**/*.test.ts"
|
|
]
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@prisma/adapter-mariadb": "^7.9.1",
|
|
"@prisma/client": "^7.9.1",
|
|
"dotenv": "^17.4.2",
|
|
"mariadb": "^3.5.3",
|
|
"next": "^16.3.0",
|
|
"next-intl": "^4.13.6",
|
|
"next-themes": "^0.4.6",
|
|
"pm2": "^7.0.3",
|
|
"prisma": "^7.9.1",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8"
|
|
},
|
|
"devDependencies": {
|
|
"@swc/core": "^1.15.47",
|
|
"@swc/jest": "^0.2.39",
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/node": "^26.2.0",
|
|
"@types/react": "^19.2.18",
|
|
"@types/react-dom": "^19.2.4",
|
|
"jest": "^30.4.2",
|
|
"jest-environment-node": "^30.4.1",
|
|
"tailwindcss": "^4.3.3",
|
|
"tsx": "^4.23.12",
|
|
"typescript": "^7.0.2"
|
|
}
|
|
}
|