remix-flat-routes
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,1 +0,2 @@ | ||
export declare function flatRoutes(baseDir: string, defineRoutes: (route: (...args: any) => void) => any): any; | ||
export default function flatRoutes(baseDir: string, defineRoutes: (route: (...args: any) => void) => any): any; | ||
export { flatRoutes }; |
@@ -44,2 +44,3 @@ "use strict"; | ||
} | ||
exports.default = flatRoutes; | ||
exports.flatRoutes = flatRoutes; | ||
@@ -74,7 +75,7 @@ function getRoutes(parentMap, parent, route) { | ||
if (routeFile.includes('/')) { | ||
if (!name.endsWith('/index')) { | ||
if (!name.endsWith('/index') && !name.endsWith('/_layout')) { | ||
return null; | ||
} | ||
name = path.dirname(routeFile); | ||
isIndex = true; | ||
isIndex = name.endsWith('/index'); | ||
} | ||
@@ -81,0 +82,0 @@ let index = 0; |
{ | ||
"name": "remix-flat-routes", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Package for generating routes using flat convention", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22079
359