Skip to content

Commit 1bf22c3

Browse files
committed
chore: wip
1 parent 184f5bd commit 1bf22c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/framework/core/orm/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,19 +646,19 @@ export async function deleteExistingModels(modelStringFile?: string) {
646646

647647
export async function deleteExistingOrmActions(modelStringFile?: string) {
648648
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)
650650

651651
if (modelStringFile) {
652652
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)
654654

655655
return
656656
}
657657

658658
const ormPaths = glob.sync(path.builtUserActionsPath(`**/*.ts`))
659659

660660
for (const ormPath of ormPaths) {
661-
if (fs.existsSync(ormPath)) await Bun.$`rm ${ormPath}`
661+
if (fs.existsSync(ormPath)) await fs.promises.unlink(ormPath)
662662
}
663663
}
664664

0 commit comments

Comments
 (0)