This commit is contained in:
Eugene Zolenko 2018-03-28 10:42:53 -06:00
parent a0b835d51a
commit f19dfae1d8
7 changed files with 1340 additions and 1524 deletions

4
dist/index.d.ts vendored
View File

@ -1,5 +1,5 @@
import { IRollupContext } from "./context";
import { ICode } from "./tscache";
import { IRollupCode } from "./tscache";
import { IRollupOptions } from "./irollup-options";
import { IOptions } from "./ioptions";
import { Partial } from "./partial";
@ -8,7 +8,7 @@ export default function typescript(options?: Partial<IOptions>): {
options(config: IRollupOptions): void;
resolveId(importee: string, importer: string): string | null;
load(id: string): string | undefined;
transform(this: IRollupContext, code: string, id: string): ICode | undefined;
transform(this: IRollupContext, code: string, id: string): IRollupCode | undefined;
ongenerate(): void;
onwrite({ dest, file }: IRollupOptions): void;
};

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

6
dist/tscache.d.ts vendored
View File

@ -5,6 +5,12 @@ export interface ICode {
map: string | undefined;
dts?: tsTypes.OutputFile | undefined;
}
export interface IRollupCode {
code: string | undefined;
map: {
mappings: string;
};
}
export interface IDiagnostics {
flatMessage: string;
formatted: string;

View File

@ -1,7 +1,7 @@
import { RollupContext } from "./rollupcontext";
import { ConsoleContext, IRollupContext, VerbosityLevel } from "./context";
import { LanguageServiceHost } from "./host";
import { TsCache, convertDiagnostic, ICode, IRollupCode } from "./tscache";
import { TsCache, convertDiagnostic, IRollupCode } from "./tscache";
import { tsModule, setTypescriptModule } from "./tsproxy";
import * as tsTypes from "typescript";
import * as resolve from "resolve";