@epic-web/workshop-utils 6.49.3 → 6.50.1
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/dist/apps.server.js +3 -2
- package/package.json +1 -1
package/dist/apps.server.js
CHANGED
|
@@ -651,8 +651,9 @@ async function getDevInfo({ fullPath, portNumber, }) {
|
|
|
651
651
|
if (hasDevScript) {
|
|
652
652
|
return { type: 'script', portNumber, initialRoute };
|
|
653
653
|
}
|
|
654
|
-
const
|
|
655
|
-
|
|
654
|
+
const packageJsonPath = path.join(fullPath, 'package.json');
|
|
655
|
+
const hasPackageJson = await fsExtra.pathExists(packageJsonPath);
|
|
656
|
+
if (!hasPackageJson) {
|
|
656
657
|
return { type: 'browser', pathname: getPathname(fullPath) };
|
|
657
658
|
}
|
|
658
659
|
else {
|