1 | import * as ts from 'typescript';
|
2 | import { FileCache } from './util/file-cache';
|
3 | import { BuildContext, ChangedFile } from './util/interfaces';
|
4 | export declare function transpile(context: BuildContext): Promise<void>;
|
5 | export declare function transpileUpdate(changedFiles: ChangedFile[], context: BuildContext): Promise<void>;
|
6 |
|
7 |
|
8 |
|
9 | export declare function transpileWorker(context: BuildContext, workerConfig: TranspileWorkerConfig): Promise<{}>;
|
10 | export declare function canRunTranspileUpdate(event: string, filePath: string, context: BuildContext): boolean;
|
11 | export declare function transpileDiagnosticsOnly(context: BuildContext): Promise<{}>;
|
12 | export interface TranspileWorkerMessage {
|
13 | rootDir?: string;
|
14 | buildDir?: string;
|
15 | configFile?: string;
|
16 | transpileSuccess?: boolean;
|
17 | }
|
18 | export declare function getTsConfigAsync(context: BuildContext, tsConfigPath?: string): Promise<TsConfig>;
|
19 | export declare function getTsConfig(context: BuildContext, tsConfigPath?: string): TsConfig;
|
20 | export declare function transpileTsString(context: BuildContext, filePath: string, stringToTranspile: string): ts.TranspileOutput;
|
21 | export declare function transformSource(filePath: string, input: string): string;
|
22 | export declare function copyOriginalSourceFiles(fileCache: FileCache): void;
|
23 | export declare function resetSourceFiles(fileCache: FileCache): void;
|
24 | export declare const inMemoryFileCopySuffix = "original";
|
25 | export declare function getTsConfigPath(context: BuildContext): string;
|
26 | export interface TsConfig {
|
27 | options: ts.CompilerOptions;
|
28 | fileNames: string[];
|
29 | raw: any;
|
30 | }
|
31 | export interface TranspileWorkerConfig {
|
32 | configFile: string;
|
33 | writeInMemory: boolean;
|
34 | sourceMaps: boolean;
|
35 | cache: boolean;
|
36 | inlineTemplate: boolean;
|
37 | useTransforms: boolean;
|
38 | }
|