File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
storage/framework/core/orm/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -646,19 +646,19 @@ export async function deleteExistingModels(modelStringFile?: string) {
646
646
647
647
export async function deleteExistingOrmActions ( modelStringFile ?: string ) {
648
648
const routes = path . frameworkPath ( `orm/routes.ts` )
649
- if ( fs . existsSync ( routes ) ) await Bun . $ `rm ${ routes } `
649
+ if ( fs . existsSync ( routes ) ) await fs . promises . unlink ( routes )
650
650
651
651
if ( modelStringFile ) {
652
652
const ormPath = path . builtUserActionsPath ( `src/${ modelStringFile } .ts` )
653
- if ( fs . existsSync ( ormPath ) ) await Bun . $ `rm ${ ormPath } `
653
+ if ( fs . existsSync ( ormPath ) ) await fs . promises . unlink ( ormPath )
654
654
655
655
return
656
656
}
657
657
658
658
const ormPaths = glob . sync ( path . builtUserActionsPath ( `**/*.ts` ) )
659
659
660
660
for ( const ormPath of ormPaths ) {
661
- if ( fs . existsSync ( ormPath ) ) await Bun . $ `rm ${ ormPath } `
661
+ if ( fs . existsSync ( ormPath ) ) await fs . promises . unlink ( ormPath )
662
662
}
663
663
}
664
664
You can’t perform that action at this time.
0 commit comments