Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 905e14b

Browse files
committed
fix: always output unix-like path
1 parent b079cd0 commit 905e14b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/checker/runtime.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if (!module.parent) {
4646
import * as ts from 'typescript';
4747
import * as path from 'path';
4848
import * as colors from 'colors';
49-
import { findResultFor } from '../helpers';
49+
import { findResultFor, toUnix } from '../helpers';
5050
import {
5151
Req,
5252
Res,
@@ -411,7 +411,7 @@ function createChecker(receive: (cb: (msg: Req) => void) => void, send: (msg: Re
411411
let fileName = diagnostic.file && path.relative(context, diagnostic.file.fileName);
412412

413413
if (fileName[0] !== '.') {
414-
fileName = './' + fileName;
414+
fileName = './' + toUnix(fileName);
415415
}
416416

417417
let pretty = '';

0 commit comments

Comments
 (0)