Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 7841bb4

Browse files
committed
Use lazyRemove
1 parent cd05a22 commit 7841bb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/app.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import { minDenoVersion } from '../shared/constants.ts'
2424
import {
2525
ensureTextFile,
2626
existsDirSync,
27-
existsFileSync
27+
existsFileSync,
28+
lazyRemove
2829
} from '../shared/fs.ts'
2930
import log from '../shared/log.ts'
3031
import util from '../shared/util.ts'
@@ -1174,7 +1175,7 @@ export class Application implements ServerApplication {
11741175
}
11751176

11761177
if (fsync) {
1177-
await Deno.remove(util.trimSuffix(mod.jsFile, '.js') + '.bundling.js')
1178+
await lazyRemove(util.trimSuffix(mod.jsFile, '.js') + '.bundling.js')
11781179
await Promise.all([
11791180
ensureTextFile(metaFile, JSON.stringify({
11801181
url,

0 commit comments

Comments
 (0)