Skip to content

Commit bba2f19

Browse files
committed
- build for 0.33.0
1 parent 3fc8caf commit bba2f19

23 files changed

+35624
-35809
lines changed

dist/context.d.ts

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { PluginContext } from "rollup";
12
export interface IContext {
23
warn(message: string | (() => string)): void;
34
error(message: string | (() => string)): void;
@@ -10,6 +11,7 @@ export declare enum VerbosityLevel {
1011
Info = 2,
1112
Debug = 3
1213
}
14+
/** mainly to be used in options hook, but can be used in other hooks too */
1315
export declare class ConsoleContext implements IContext {
1416
private verbosity;
1517
private prefix;
@@ -19,4 +21,16 @@ export declare class ConsoleContext implements IContext {
1921
info(message: string | (() => string)): void;
2022
debug(message: string | (() => string)): void;
2123
}
24+
/** cannot be used in options hook (which does not have this.warn and this.error), but can be in other hooks */
25+
export declare class RollupContext implements IContext {
26+
private verbosity;
27+
private bail;
28+
private context;
29+
private prefix;
30+
constructor(verbosity: VerbosityLevel, bail: boolean, context: PluginContext, prefix?: string);
31+
warn(message: string | (() => string)): void;
32+
error(message: string | (() => string)): void;
33+
info(message: string | (() => string)): void;
34+
debug(message: string | (() => string)): void;
35+
}
2236
//# sourceMappingURL=context.d.ts.map

dist/context.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/diagnostics-format-host.d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
/// <reference types="node" />
2+
import * as path from "path";
13
import * as tsTypes from "typescript";
24
export declare class FormatHost implements tsTypes.FormatDiagnosticsHost {
35
getCurrentDirectory(): string;
4-
getCanonicalFileName(fileName: string): string;
5-
getNewLine(): string;
6+
getCanonicalFileName: typeof path.normalize;
7+
getNewLine: () => string;
68
}
79
export declare const formatHost: FormatHost;
810
//# sourceMappingURL=diagnostics-format-host.d.ts.map

dist/diagnostics-format-host.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/host.d.ts

+17-14
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,25 @@ export declare class LanguageServiceHost implements tsTypes.LanguageServiceHost
1111
constructor(parsedConfig: tsTypes.ParsedCommandLine, transformers: TransformerFactoryCreator[], cwd: string);
1212
reset(): void;
1313
setLanguageService(service: tsTypes.LanguageService): void;
14-
setSnapshot(fileName: string, data: string): tsTypes.IScriptSnapshot;
14+
setSnapshot(fileName: string, source: string): tsTypes.IScriptSnapshot;
1515
getScriptSnapshot(fileName: string): tsTypes.IScriptSnapshot | undefined;
16-
getCurrentDirectory(): string;
16+
getScriptFileNames: () => string[];
1717
getScriptVersion(fileName: string): string;
18-
getScriptFileNames(): string[];
19-
getCompilationSettings(): tsTypes.CompilerOptions;
20-
getDefaultLibFileName(opts: tsTypes.CompilerOptions): string;
21-
useCaseSensitiveFileNames(): boolean;
22-
readDirectory(path: string, extensions?: string[], exclude?: string[], include?: string[]): string[];
23-
readFile(path: string, encoding?: string): string | undefined;
24-
fileExists(path: string): boolean;
25-
realpath(path: string): string;
26-
getTypeRootsVersion(): number;
27-
directoryExists(directoryName: string): boolean;
28-
getDirectories(directoryName: string): string[];
2918
getCustomTransformers(): tsTypes.CustomTransformers | undefined;
30-
trace(line: string): void;
19+
getCompilationSettings: () => tsTypes.CompilerOptions;
20+
getTypeRootsVersion: () => number;
21+
getCurrentDirectory: () => string;
22+
useCaseSensitiveFileNames: () => boolean;
23+
getDefaultLibFileName: typeof tsTypes.getDefaultLibFilePath;
24+
readDirectory: (path: string, extensions?: readonly string[] | undefined, exclude?: readonly string[] | undefined, include?: readonly string[] | undefined, depth?: number | undefined) => string[];
25+
readFile: (path: string, encoding?: string | undefined) => string | undefined;
26+
fileExists: (path: string) => boolean;
27+
directoryExists: (path: string) => boolean;
28+
getDirectories: (path: string) => string[];
29+
realpath: (path: string) => string;
30+
trace: {
31+
(...data: any[]): void;
32+
(message?: any, ...optionalParams: any[]): void;
33+
};
3134
}
3235
//# sourceMappingURL=host.d.ts.map

dist/host.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/index.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/nocache.d.ts

-11
This file was deleted.

dist/nocache.d.ts.map

-1
This file was deleted.

dist/parse-tsconfig.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/print-diagnostics.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { IContext } from "./context";
22
import { IDiagnostics } from "./tscache";
3-
export declare function printDiagnostics(context: IContext, diagnostics: IDiagnostics[], pretty: boolean): void;
3+
export declare function printDiagnostics(context: IContext, diagnostics: IDiagnostics[], pretty?: boolean): void;
44
//# sourceMappingURL=print-diagnostics.d.ts.map

dist/print-diagnostics.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/rollingcache.d.ts

+6-18
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,21 @@ import { ICache } from "./icache";
55
*/
66
export declare class RollingCache<DataType> implements ICache<DataType> {
77
private cacheRoot;
8-
private checkNewCache;
98
private oldCacheRoot;
109
private newCacheRoot;
1110
private rolled;
12-
/**
13-
* @param cacheRoot: root folder for the cache
14-
* @param checkNewCache: whether to also look in new cache when reading from cache
15-
*/
16-
constructor(cacheRoot: string, checkNewCache: boolean);
17-
/**
18-
* @returns true if name exist in old cache (or either old of new cache if checkNewCache is true)
19-
*/
11+
/** @param cacheRoot: root folder for the cache */
12+
constructor(cacheRoot: string);
13+
/** @returns true if name exists in either old cache or new cache */
2014
exists(name: string): boolean;
2115
path(name: string): string;
22-
/**
23-
* @returns true if old cache contains all names and nothing more
24-
*/
16+
/** @returns true if old cache contains all names and nothing more */
2517
match(names: string[]): boolean;
26-
/**
27-
* @returns data for name, must exist in old cache (or either old of new cache if checkNewCache is true)
28-
*/
18+
/** @returns data for name, must exist in either old cache or new cache */
2919
read(name: string): DataType | null | undefined;
3020
write(name: string, data: DataType): void;
3121
touch(name: string): void;
32-
/**
33-
* clears old cache and moves new in its place
34-
*/
22+
/** clears old cache and moves new in its place */
3523
roll(): void;
3624
}
3725
//# sourceMappingURL=rollingcache.d.ts.map

dist/rollingcache.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

0 commit comments

Comments
 (0)