Skip to content

Commit

Permalink
Fix missing mkdir in gen
Browse files Browse the repository at this point in the history
  • Loading branch information
sebt3 committed Mar 6, 2024
1 parent 6033cbf commit 5399480
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ new Promise((resolve) => {
allRoutes(path.resolve(path_front, 'routes'), `index.ts`, {groups: current, categories: allCategories})
allCategories.forEach(c=>{
if (!deleteFiles) mkdir(path.resolve(path_front, 'routes', c));
if (!deleteFiles) mkdir(path.resolve(path_front, 'pages', c));
const groups = current.map(g=>{return{
...g,
objects: g.objects.filter(o=>o.category==c)
Expand Down

0 comments on commit 5399480

Please sign in to comment.