Skip to content

Commit

Permalink
fix: use normalizePath for Windows compat (#86)
Browse files Browse the repository at this point in the history
Closes #85
  • Loading branch information
joshwooding committed Dec 14, 2022
1 parent 5566d70 commit 68a2abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -103,7 +103,7 @@ export default (opts: PluginOptions = {}): Plugin => {
} else {
const resolver = createResolver(project)
if (resolver) {
const projectDir = dirname(project.tsconfigFile)
const projectDir = normalizePath(dirname(project.tsconfigFile))
const resolvers = (resolversByDir[projectDir] ||= [])
resolvers.push(resolver)
}
Expand Down Expand Up @@ -146,7 +146,7 @@ export default (opts: PluginOptions = {}): Plugin => {
function createResolver(
project: tsconfck.TSConfckParseResult
): Resolver | null {
const configPath = project.tsconfigFile
const configPath = normalizePath(project.tsconfigFile)
const config = project.tsconfig as {
files?: string[]
include?: string[]
Expand Down

0 comments on commit 68a2abd

Please sign in to comment.