Skip to content

Commit

Permalink
fix: use pathe for path resolution
Browse files Browse the repository at this point in the history
resolves #74
  • Loading branch information
pi0 committed Sep 6, 2022
1 parent a47a399 commit 000c6ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jiti.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { existsSync, readFileSync, writeFileSync } from 'fs'
import { Module, builtinModules } from 'module'
import { dirname, join, basename, extname } from 'path'
import { performance } from 'perf_hooks'
import { tmpdir, platform } from 'os'
import vm from 'vm'
import { fileURLToPath, pathToFileURL } from 'url'
import { dirname, join, basename, extname } from 'pathe'
import { sync as mkdirpSync } from 'mkdirp'
import destr from 'destr'
import createRequire from 'create-require'
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lstatSync, accessSync, constants, readFileSync } from 'fs'
import { createHash } from 'crypto'
import { join } from 'path'
import { join } from 'pathe'
import type { PackageJson } from 'pkg-types'

export function isDir (filename: string): boolean {
Expand Down

0 comments on commit 000c6ad

Please sign in to comment.