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:
Generated
+981
-14
File diff suppressed because it is too large
Load Diff
@@ -11,10 +11,6 @@
|
|||||||
"cap:open": "cap open android"
|
"cap:open": "cap open android"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"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",
|
"next": "16.2.6",
|
||||||
"react": "19.2.6",
|
"react": "19.2.6",
|
||||||
"react-dom": "19.2.6",
|
"react-dom": "19.2.6",
|
||||||
@@ -28,7 +24,6 @@
|
|||||||
"date-fns-jalali": "^3.4.0-0"
|
"date-fns-jalali": "^3.4.0-0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@capacitor/cli": "^6.2.0",
|
|
||||||
"typescript": "5.8.3",
|
"typescript": "5.8.3",
|
||||||
"@types/node": "^22",
|
"@types/node": "^22",
|
||||||
"@types/react": "19.1.4",
|
"@types/react": "19.1.4",
|
||||||
@@ -38,5 +33,12 @@
|
|||||||
"autoprefixer": "^10",
|
"autoprefixer": "^10",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "16.2.6"
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user