nx
Version:
17 lines (16 loc) • 747 B
TypeScript
/**
* Optionally, if swc-node and tsconfig-paths are available in the current workspace, apply the require
* register hooks so that .ts files can be used for writing custom workspace projects.
*
* If ts-node and tsconfig-paths are not available, the user can still provide an index.js file in
* the root of their project and the fundamentals will still work (but
* workspace path mapping will not, for example).
*
* @returns cleanup function
*/
export declare const registerTsProject: (path: string, configFilename?: string) => (() => void);
/**
* @param tsConfigPath Adds the paths from a tsconfig file into node resolutions
* @returns cleanup function
*/
export declare function registerTsConfigPaths(tsConfigPath: any): () => void;