Skip to content

Commit

Permalink
Normalize path
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBertocci committed May 19, 2024
1 parent 2633783 commit 7f8e79e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ark/attest/cache/ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fromCwd, type SourcePosition } from "@arktype/fs"
import { throwInternalError } from "@arktype/util"
import * as tsvfs from "@typescript/vfs"
import { readFileSync } from "node:fs"
import { dirname, join } from "node:path"
import path, { dirname, join } from "node:path"
import ts from "typescript"
import { getConfig } from "../config.js"

Expand All @@ -20,8 +20,8 @@ export class TsServer {

const tsLibPaths = getTsLibFiles(tsConfigInfo.parsed.options)

this.rootFiles = tsConfigInfo.parsed.fileNames.filter(path =>
path.startsWith(fromCwd())
this.rootFiles = tsConfigInfo.parsed.fileNames.filter(filePath =>
path.normalize(filePath).startsWith(fromCwd())
)

const system = tsvfs.createFSBackedSystem(
Expand Down

0 comments on commit 7f8e79e

Please sign in to comment.