UNPKG

@nrwl/workspace

Version:

The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.

24 lines (23 loc) 1.02 kB
import { Tree } from '@nrwl/devkit'; import type * as ts from 'typescript'; export { compileTypeScript } from './typescript/compilation'; export type { TypeScriptCompilationOptions } from './typescript/compilation'; export { findNodes } from './typescript/find-nodes'; export { getSourceNodes } from './typescript/get-source-nodes'; /** * Find a module based on it's import * * @param importExpr Import used to resolve to a module * @param filePath * @param tsConfigPath */ export declare function resolveModuleByImport(importExpr: string, filePath: string, tsConfigPath: string): string; export declare function ensureTypescript(): typeof ts; /** * @deprecated Please import this from @nrwl/js instead. This function will be removed in v17 */ export declare function getRelativePathToRootTsConfig(tree: Tree, targetPath: string): string; /** * @deprecated Please import this from @nrwl/js instead. This function will be removed in v17 */ export declare function getRootTsConfigPathInTree(tree: Tree): string;