Skip to content

Commit

Permalink
ensure lint post function is synchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Nov 17, 2024
1 parent bf9da99 commit bdcbe09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/lint/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { execa, type Subprocess } from 'execa'
import kleur from 'kleur'
import mri from 'mri'
import { existsSync } from 'node:fs'
import { existsSync, rmSync } from 'node:fs'
import fs from 'node:fs/promises'
import path from 'node:path'
import { Transform } from 'node:stream'
Expand Down Expand Up @@ -86,8 +86,8 @@ const lint = (scripts: string[]): Command[] => [
JSON.stringify(tsconfig, null, 2),
)
},
async post() {
await fs.rm(path.join(dir, 'tsconfig.json'))
post() {
rmSync(path.join(dir, 'tsconfig.json'))
},
}
}),
Expand Down

0 comments on commit bdcbe09

Please sign in to comment.