botversion-sdk 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/detector.js +3 -1
- package/package.json +1 -1
package/cli/detector.js
CHANGED
|
@@ -851,7 +851,9 @@ function detect(cwd) {
|
|
|
851
851
|
if (frontendDir && frontendPkg) {
|
|
852
852
|
frontendMainFile = findMainFrontendFile(frontendDir, frontendPkg);
|
|
853
853
|
} else if (framework.name === "next") {
|
|
854
|
-
|
|
854
|
+
frontendMainFile = findMainFrontendFile(backendDir, backendPkg);
|
|
855
|
+
} else if (framework.name === "express" && !frontendDir) {
|
|
856
|
+
// Express + frontend in same root folder (e.g. public/index.html)
|
|
855
857
|
frontendMainFile = findMainFrontendFile(backendDir, backendPkg);
|
|
856
858
|
}
|
|
857
859
|
|