Make Koja native deps optional to unblock web Docker build

Move Capacitor and cordova-plugin-pushe to optionalDependencies. They are
only needed for the native mobile shell, are never imported by the Next.js
source, and are not served by the Liara npm mirror — so installing them as
hard dependencies broke the web image build. As optional deps, npm skips
them when the mirror can't resolve them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-05-29 17:21:40 +03:30
parent 99aa6b7048
commit 377ef109cd
2 changed files with 988 additions and 19 deletions
+981 -14
View File
File diff suppressed because it is too large Load Diff
+7 -5
View File
@@ -11,10 +11,6 @@
"cap:open": "cap open android"
},
"dependencies": {
"@capacitor/android": "^6.2.0",
"@capacitor/core": "^6.2.0",
"@capacitor/splash-screen": "^6.0.3",
"cordova-plugin-pushe": "^2.5.0",
"next": "16.2.6",
"react": "19.2.6",
"react-dom": "19.2.6",
@@ -28,7 +24,6 @@
"date-fns-jalali": "^3.4.0-0"
},
"devDependencies": {
"@capacitor/cli": "^6.2.0",
"typescript": "5.8.3",
"@types/node": "^22",
"@types/react": "19.1.4",
@@ -38,5 +33,12 @@
"autoprefixer": "^10",
"eslint": "^8",
"eslint-config-next": "16.2.6"
},
"optionalDependencies": {
"@capacitor/android": "^6.2.0",
"@capacitor/cli": "^6.2.0",
"@capacitor/core": "^6.2.0",
"@capacitor/splash-screen": "^6.0.3",
"cordova-plugin-pushe": "^2.5.0"
}
}