@epic-web/workshop-utils 6.50.0 → 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.
@@ -651,8 +651,9 @@ async function getDevInfo({ fullPath, portNumber, }) {
651
651
  if (hasDevScript) {
652
652
  return { type: 'script', portNumber, initialRoute };
653
653
  }
654
- const indexFiles = (await fsExtra.readdir(fullPath)).filter((file) => file.startsWith('index.'));
655
- if (indexFiles.length) {
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epic-web/workshop-utils",
3
- "version": "6.50.0",
3
+ "version": "6.50.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },