honox 0.1.48 → 0.1.49

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.
@@ -95,7 +95,7 @@ const createApp = (options) => {
95
95
  subApp.use("*", rendererDefault);
96
96
  const rootPath2 = dir.replace(rootRegExp, "");
97
97
  const isRootLevel = !rootPath2.includes("/") || rootPath2 === "";
98
- const isSimpleStructure = Object.keys(content).length <= 4 && !Object.keys(content).some((f) => f.includes("/"));
98
+ const isSimpleStructure = !Object.keys(content).some((f) => f.includes("/"));
99
99
  if (Object.keys(content).length > 0 && isRootLevel && isSimpleStructure) {
100
100
  subApp.use("/", rendererDefault);
101
101
  Object.keys(content).forEach((filename) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "honox",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "scripts": {