Skip to content

Commit

Permalink
fix(compiler): normalizePath result from fs.realpathSync (#2625)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmchambers committed Aug 10, 2020
1 parent 2ccf6ce commit df83c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/sys/modules/fs.ts
@@ -1,6 +1,7 @@
import type * as d from '../../../declarations';
import { basename } from 'path';
import { promisify } from './util';
import { normalizePath } from '@utils';

export interface FsObj {
__sys: d.CompilerSystem;
Expand Down Expand Up @@ -111,7 +112,7 @@ export const realpathSync = (fs.realpathSync = (p: string) => {
if (results.error) {
throw results.error;
}
return results.path;
return normalizePath(results.path);
});

export const statSync = (fs.statSync = (p: string) => {
Expand Down

0 comments on commit df83c83

Please sign in to comment.