Skip to content

Commit

Permalink
fix: use os path to parse tsconfig
Browse files Browse the repository at this point in the history
close #1591, close #1593,
  • Loading branch information
johnsoncodehk committed Jul 19, 2022
1 parent 302b573 commit 0f7a9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-typescript/src/utils/ts.ts
@@ -1,5 +1,5 @@
import type * as ts from 'typescript/lib/tsserverlibrary';
import { posix as path } from 'path';
import * as path from 'path';
import type { VueCompilerOptions } from '../types';

export function createParsedCommandLine(
Expand All @@ -17,7 +17,7 @@ export function createParsedCommandLine(
content.options.outDir = undefined; // TODO: patching ts server broke with outDir + rootDir + composite/incremental

let baseVueOptions = {};
const folder = path.dirname(tsConfig);
const folder = path.dirname(tsConfigPath);

extendsSet.add(tsConfig);

Expand Down

0 comments on commit 0f7a9a3

Please sign in to comment.