We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa76e5 commit 636c020Copy full SHA for 636c020
1 file changed
codegen/lib/connect.ts
@@ -69,7 +69,10 @@ export const connect = (
69
const k =
70
parentPath === ''
71
? `${rootPath}/index.js`
72
- : `${rootPath}/${kebabCase(parentPath)}/index.js`
+ : `${rootPath}${parentPath
73
+ .split('/')
74
+ .map((p) => kebabCase(p))
75
+ .join('/')}/index.js`
76
files[k] = { contents: Buffer.from('\n') }
77
const file = files[k] as unknown as File
78
file.layout = 'route-index.hbs'
0 commit comments