UNPKG

1.02 kBTypeScriptView 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';
7/**
8 * Find a module based on it's import
9 *
10 * @param importExpr Import used to resolve to a module
11 * @param filePath
12 * @param tsConfigPath
13 */
14export declare function resolveModuleByImport(importExpr: string, filePath: string, tsConfigPath: string): string;
15export declare function ensureTypescript(): typeof ts;
16/**
17 * @deprecated Please import this from @nrwl/js instead. This function will be removed in v17
18 */
19export declare function getRelativePathToRootTsConfig(tree: Tree, targetPath: string): string;
20/**
21 * @deprecated Please import this from @nrwl/js instead. This function will be removed in v17
22 */
23export declare function getRootTsConfigPathInTree(tree: Tree): string;