@@ -514,7 +514,7 @@ export function getFillableAttributes(model: Model, otherModelRelations: Relatio
514
514
}
515
515
516
516
export async function writeModelNames ( ) : Promise < void > {
517
- const models = globSync ( [ path . userModelsPath ( '*.ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
517
+ const models = globSync ( [ path . userModelsPath ( '**/* .ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
518
518
let fileString = `export type ModelNames = `
519
519
520
520
for ( let i = 0 ; i < models . length ; i ++ ) {
@@ -539,7 +539,7 @@ export async function writeModelNames(): Promise<void> {
539
539
}
540
540
541
541
export async function writeTableNames ( ) : Promise < void > {
542
- const models = globSync ( [ path . userModelsPath ( '*.ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
542
+ const models = globSync ( [ path . userModelsPath ( '**/* .ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
543
543
544
544
let fileString = `export type TableNames = `
545
545
@@ -572,7 +572,7 @@ export async function writeTableNames(): Promise<void> {
572
572
}
573
573
574
574
export async function writeModelAttributes ( ) : Promise < void > {
575
- const modelFiles = globSync ( [ path . userModelsPath ( '*.ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
575
+ const modelFiles = globSync ( [ path . userModelsPath ( '**/* .ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
576
576
let fieldString = `export interface Attributes { \n`
577
577
const attributesTypeFile = path . frameworkPath ( 'types/attributes.ts' )
578
578
@@ -608,7 +608,7 @@ export async function writeModelAttributes(): Promise<void> {
608
608
}
609
609
610
610
export async function writeModelEvents ( ) : Promise < void > {
611
- const modelFiles = globSync ( [ path . userModelsPath ( '*.ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
611
+ const modelFiles = globSync ( [ path . userModelsPath ( '**/* .ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
612
612
let eventString = ``
613
613
let observerString = ``
614
614
let observerImports = ``
@@ -648,7 +648,7 @@ export async function writeModelEvents(): Promise<void> {
648
648
}
649
649
650
650
export async function writeModelRequest ( ) : Promise < void > {
651
- const modelFiles = globSync ( [ path . userModelsPath ( '*.ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
651
+ const modelFiles = globSync ( [ path . userModelsPath ( '**/* .ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
652
652
653
653
let importTypes = ``
654
654
let importTypesString = ``
@@ -1176,7 +1176,7 @@ export async function deleteExistingOrmRoute(): Promise<void> {
1176
1176
}
1177
1177
1178
1178
export async function generateKyselyTypes ( ) : Promise < void > {
1179
- const modelFiles = globSync ( [ path . userModelsPath ( '*.ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
1179
+ const modelFiles = globSync ( [ path . userModelsPath ( '**/* .ts' ) , path . storagePath ( 'framework/defaults/models/**/*.ts' ) ] , { absolute : true } )
1180
1180
1181
1181
let text = ``
1182
1182
0 commit comments