UNPKG

978 BTypeScriptView Raw
1import { Tree } from '@nrwl/devkit';
2import type * as ts from 'typescript';
3export { compileTypeScript } from './typescript/compilation';
4export type { TypeScriptCompilationOptions } from './typescript/compilation';
5export { findNodes } from './typescript/find-nodes';
6export { getSourceNodes } from './typescript/get-source-nodes';
7export declare function readTsConfig(tsConfigPath: string): ts.ParsedCommandLine;
8/**
9 * Find a module based on it's import
10 *
11 * @param importExpr Import used to resolve to a module
12 * @param filePath
13 * @param tsConfigPath
14 */
15export declare function resolveModuleByImport(importExpr: string, filePath: string, tsConfigPath: string): string;
16export declare function getRootTsConfigPathInTree(tree: Tree): string | null;
17export declare function getRelativePathToRootTsConfig(tree: Tree, targetPath: string): string;
18export declare function getRootTsConfigFileName(): string | null;
19export declare function getRootTsConfigPath(): string | null;