Skip to content

Commit

Permalink
fix: support typechecking with Yarn PnP (#4412)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 1, 2023
1 parent 9021e8b commit 1ecbe74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vitest/src/typecheck/parse.ts
@@ -1,4 +1,5 @@
import url from 'node:url'
import os from 'node:os'
import { writeFile } from 'node:fs/promises'
import { basename, dirname, join, resolve } from 'pathe'
import { getTsconfig as getTsconfigContent } from 'get-tsconfig'
Expand Down Expand Up @@ -77,7 +78,7 @@ export async function getTsconfig(root: string, config: TypecheckConfig) {
tmpTsConfig.compilerOptions.emitDeclarationOnly = false
tmpTsConfig.compilerOptions.incremental = true
tmpTsConfig.compilerOptions.tsBuildInfoFile = join(
__dirname,
process.versions.pnp ? join(os.tmpdir(), 'vitest') : __dirname,
'tsconfig.tmp.tsbuildinfo',
)

Expand Down

0 comments on commit 1ecbe74

Please sign in to comment.