Previously, `isRelativePath()` assumed paths are *nix-style. This caused Windows-style paths (such as `C:\foo\some-package\some-file.js`) to not be recognized as "relative" imports. This commit fixes this by using the OS-agnostic `isRooted()` helper and also accounting for both styles of path delimiters: `/` and `\` PR Close #36372
15 lines
761 B
TypeScript
15 lines
761 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
export {CachedFileSystem} from './src/cached_file_system';
|
|
export {NgtscCompilerHost} from './src/compiler_host';
|
|
export {absoluteFrom, absoluteFromSourceFile, basename, dirname, getFileSystem, isRoot, isRooted, join, relative, relativeFrom, resolve, setFileSystem} from './src/helpers';
|
|
export {LogicalFileSystem, LogicalProjectPath} from './src/logical';
|
|
export {NodeJSFileSystem} from './src/node_js_file_system';
|
|
export {AbsoluteFsPath, FileStats, FileSystem, PathSegment, PathString} from './src/types';
|
|
export {getSourceFileOrError} from './src/util';
|