Skip to content

Commit cf4c74a

Browse files
committed
chore: wip
1 parent 03887e9 commit cf4c74a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,8 +1756,10 @@ export async function generateModelFiles(modelStringFile?: string, options?: Gen
17561756
// we run this in background in background, because we simply need to lint:fix the auto-generated code
17571757
// the reason we run it in background is because we don't care whether it fails or not, given there
17581758
// is a chance that the codebase has lint issues unrelating to our auto-generated code
1759-
const process = Bun.spawn(['timeout', '2', 'bunx', 'biome', 'check', '--fix'], {
1760-
stdio: ['pipe', 'pipe', 'pipe'],
1759+
const process = Bun.spawn(['bunx', 'biome', 'check', '--fix'], {
1760+
stdio: ['ignore', 'pipe', 'pipe'],
1761+
cwd: path.projectPath(),
1762+
detached: true,
17611763
})
17621764

17631765
const reader = process.stdout.getReader()
@@ -1788,6 +1790,7 @@ export async function generateModelFiles(modelStringFile?: string, options?: Gen
17881790
}
17891791
} catch (error) {
17901792
log.error('There was an error fixing your code style.')
1793+
log.error(error)
17911794
process.exit(ExitCode.FatalError)
17921795
}
17931796

0 commit comments

Comments
 (0)