Skip to content

Commit

Permalink
remove mkdirp dep
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 5, 2024
1 parent 0b69f3d commit a7d30a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/service/load.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Load a module from disk, and compile it.
// Result is cached by fileName + mtime, and cleared when config changes.
import { cachedMtime } from '@isaacs/cached'
import { writeFileSync } from 'fs'
import { mkdirpSync } from 'mkdirp'
import { mkdirSync, writeFileSync } from 'fs'
import { relative, resolve } from 'path'
import { ParsedCommandLine } from 'typescript'
import { info } from '../debug.js'
Expand Down Expand Up @@ -74,7 +73,7 @@ export const load = (

if (!didMkdirp) {
didMkdirp = true
mkdirpSync(resolve(cwd, '.tsimp/compiled'))
mkdirSync(resolve(cwd, '.tsimp/compiled'), { recursive: true })
}
writeFileSync(outFile, outputText)
return {
Expand Down

0 comments on commit a7d30a9

Please sign in to comment.