15815213711
2024-08-26 67b8b6731811983447e053d4396b3708c14dfe3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/** Return true if any files need compiling */
export declare function needsCompile(srcGlobs: string[], outDir: string): boolean;
/** Return true if all files exist on the filesystem */
export declare function expectFilesExist(files: string[]): boolean;
/** @return path to the js file that will be produced by typescript compilation */
export declare function jsOutFile(tsFile: string, outDir: string): string;
export declare let _compileCount: number;
export declare function _withCompileCount(fn: () => void): number;
export declare function compileIfNecessary(sources: string[], outDir: string, strict?: boolean): boolean;
/** create a symlink, replacing any existing linkfile */
export declare function symLinkForce(existing: string, link: string): void;
/** @return the resolved path to the nearest node_modules file,
 * either in the provided directory or a parent.
 */
export declare function nearestNodeModules(dir: string): string | undefined;
/**
 * Compile a typescript config file to js if necessary (if the js
 * file doesn't exist or is older than the typescript file).
 *
 * @param tsFile path to ts config file
 * @param outDir directory to place the compiled js file
 * @returns the path to the compiled javascript config file,
 *   or undefined if the compilation fails.
 */
export declare function compileConfigIfNecessary(tsFile: string, outDir: string, strict?: boolean): string | undefined;