Skip to content

Commit 31f61f7

Browse files
committed
- build for 0.35.0
1 parent bb78363 commit 31f61f7

20 files changed

+1861
-1857
lines changed

dist/context.d.ts

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import { PluginContext } from "rollup";
2-
export declare enum VerbosityLevel {
3-
Error = 0,
4-
Warning = 1,
5-
Info = 2,
6-
Debug = 3
7-
}
8-
/** cannot be used in options hook (which does not have this.warn and this.error), but can be in other hooks */
9-
export declare class RollupContext {
10-
private verbosity;
11-
private bail;
12-
private context;
13-
private prefix;
14-
constructor(verbosity: VerbosityLevel, bail: boolean, context: PluginContext, prefix?: string);
15-
warn(message: string | (() => string)): void;
16-
error(message: string | (() => string)): void | never;
17-
info(message: string | (() => string)): void;
18-
debug(message: string | (() => string)): void;
19-
}
1+
import { PluginContext } from "rollup";
2+
export declare enum VerbosityLevel {
3+
Error = 0,
4+
Warning = 1,
5+
Info = 2,
6+
Debug = 3
7+
}
8+
/** cannot be used in options hook (which does not have this.warn and this.error), but can be in other hooks */
9+
export declare class RollupContext {
10+
private verbosity;
11+
private bail;
12+
private context;
13+
private prefix;
14+
constructor(verbosity: VerbosityLevel, bail: boolean, context: PluginContext, prefix?: string);
15+
warn(message: string | (() => string)): void;
16+
error(message: string | (() => string)): void | never;
17+
info(message: string | (() => string)): void;
18+
debug(message: string | (() => string)): void;
19+
}
2020
//# sourceMappingURL=context.d.ts.map

dist/diagnostics-format-host.d.ts

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

dist/diagnostics.d.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import * as tsTypes from "typescript";
2-
import { RollupContext } from "./context";
3-
export interface IDiagnostics {
4-
flatMessage: string;
5-
formatted: string;
6-
fileLine?: string;
7-
category: tsTypes.DiagnosticCategory;
8-
code: number;
9-
type: string;
10-
}
11-
export declare function convertDiagnostic(type: string, data: tsTypes.Diagnostic[]): IDiagnostics[];
12-
export declare function printDiagnostics(context: RollupContext, diagnostics: IDiagnostics[], pretty?: boolean): void;
1+
import * as tsTypes from "typescript";
2+
import { RollupContext } from "./context";
3+
export interface IDiagnostics {
4+
flatMessage: string;
5+
formatted: string;
6+
fileLine?: string;
7+
category: tsTypes.DiagnosticCategory;
8+
code: number;
9+
type: string;
10+
}
11+
export declare function convertDiagnostic(type: string, data: tsTypes.Diagnostic[]): IDiagnostics[];
12+
export declare function printDiagnostics(context: RollupContext, diagnostics: IDiagnostics[], pretty?: boolean): void;
1313
//# sourceMappingURL=diagnostics.d.ts.map

dist/get-options-overrides.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as tsTypes from "typescript";
2-
import { IOptions } from "./ioptions";
3-
import { RollupContext } from "./context";
4-
export declare function getOptionsOverrides({ useTsconfigDeclarationDir, cacheRoot }: IOptions, preParsedTsconfig?: tsTypes.ParsedCommandLine): tsTypes.CompilerOptions;
5-
export declare function createFilter(context: RollupContext, pluginOptions: IOptions, parsedConfig: tsTypes.ParsedCommandLine): (id: unknown) => boolean;
1+
import * as tsTypes from "typescript";
2+
import { IOptions } from "./ioptions";
3+
import { RollupContext } from "./context";
4+
export declare function getOptionsOverrides({ useTsconfigDeclarationDir, cacheRoot }: IOptions, preParsedTsconfig?: tsTypes.ParsedCommandLine): tsTypes.CompilerOptions;
5+
export declare function createFilter(context: RollupContext, pluginOptions: IOptions, parsedConfig: tsTypes.ParsedCommandLine): (id: unknown) => boolean;
66
//# sourceMappingURL=get-options-overrides.d.ts.map

dist/host.d.ts

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
import * as tsTypes from "typescript";
2-
import { TransformerFactoryCreator } from "./ioptions";
3-
export declare class LanguageServiceHost implements tsTypes.LanguageServiceHost {
4-
private parsedConfig;
5-
private transformers;
6-
private cwd;
7-
private snapshots;
8-
private versions;
9-
private service?;
10-
private fileNames;
11-
constructor(parsedConfig: tsTypes.ParsedCommandLine, transformers: TransformerFactoryCreator[], cwd: string);
12-
reset(): void;
13-
setLanguageService(service: tsTypes.LanguageService): void;
14-
setSnapshot(fileName: string, source: string): tsTypes.IScriptSnapshot;
15-
getScriptSnapshot(fileName: string): tsTypes.IScriptSnapshot | undefined;
16-
getScriptFileNames: () => string[];
17-
getScriptVersion(fileName: string): string;
18-
getCustomTransformers(): tsTypes.CustomTransformers | undefined;
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-
};
34-
}
1+
import * as tsTypes from "typescript";
2+
import { TransformerFactoryCreator } from "./ioptions";
3+
export declare class LanguageServiceHost implements tsTypes.LanguageServiceHost {
4+
private parsedConfig;
5+
private transformers;
6+
private cwd;
7+
private snapshots;
8+
private versions;
9+
private service?;
10+
private fileNames;
11+
constructor(parsedConfig: tsTypes.ParsedCommandLine, transformers: TransformerFactoryCreator[], cwd: string);
12+
reset(): void;
13+
setLanguageService(service: tsTypes.LanguageService): void;
14+
setSnapshot(fileName: string, source: string): tsTypes.IScriptSnapshot;
15+
getScriptSnapshot(fileName: string): tsTypes.IScriptSnapshot | undefined;
16+
getScriptFileNames: () => string[];
17+
getScriptVersion(fileName: string): string;
18+
getCustomTransformers(): tsTypes.CustomTransformers | undefined;
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+
};
34+
}
3535
//# sourceMappingURL=host.d.ts.map

dist/icache.d.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export interface ICache<DataType> {
2-
exists(name: string): boolean;
3-
path(name: string): string;
4-
match(names: string[]): boolean;
5-
read(name: string): DataType | null | undefined;
6-
write(name: string, data: DataType): void;
7-
touch(name: string): void;
8-
roll(): void;
9-
}
1+
export interface ICache<DataType> {
2+
exists(name: string): boolean;
3+
path(name: string): string;
4+
match(names: string[]): boolean;
5+
read(name: string): DataType | null | undefined;
6+
write(name: string, data: DataType): void;
7+
touch(name: string): void;
8+
roll(): void;
9+
}
1010
//# sourceMappingURL=icache.d.ts.map

dist/index.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { PluginImpl } from "rollup";
2-
import { IOptions } from "./ioptions";
3-
declare type RPT2Options = Partial<IOptions>;
4-
export { RPT2Options };
5-
declare const typescript: PluginImpl<RPT2Options>;
6-
export default typescript;
1+
import { PluginImpl } from "rollup";
2+
import { IOptions } from "./ioptions";
3+
type RPT2Options = Partial<IOptions>;
4+
export { RPT2Options };
5+
declare const typescript: PluginImpl<RPT2Options>;
6+
export default typescript;
77
//# sourceMappingURL=index.d.ts.map

dist/index.d.ts.map

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

dist/ioptions.d.ts

+27-27
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import * as tsTypes from "typescript";
2-
import { tsModule } from "./tsproxy";
3-
export interface ICustomTransformer {
4-
before?: tsTypes.TransformerFactory<tsTypes.SourceFile>;
5-
after?: tsTypes.TransformerFactory<tsTypes.SourceFile>;
6-
afterDeclarations?: tsTypes.TransformerFactory<tsTypes.Bundle | tsTypes.SourceFile>;
7-
}
8-
export declare type TransformerFactoryCreator = (ls: tsTypes.LanguageService) => tsTypes.CustomTransformers | ICustomTransformer;
9-
export interface IOptions {
10-
cwd: string;
11-
include: string | string[];
12-
exclude: string | string[];
13-
check: boolean;
14-
verbosity: number;
15-
clean: boolean;
16-
cacheRoot: string;
17-
abortOnError: boolean;
18-
rollupCommonJSResolveHack: boolean;
19-
tsconfig?: string;
20-
useTsconfigDeclarationDir: boolean;
21-
typescript: typeof tsModule;
22-
tsconfigOverride: any;
23-
transformers: TransformerFactoryCreator[];
24-
tsconfigDefaults: any;
25-
sourceMapCallback: (id: string, map: string) => void;
26-
objectHashIgnoreUnknownHack: boolean;
27-
}
1+
import * as tsTypes from "typescript";
2+
import { tsModule } from "./tsproxy";
3+
export interface ICustomTransformer {
4+
before?: tsTypes.TransformerFactory<tsTypes.SourceFile>;
5+
after?: tsTypes.TransformerFactory<tsTypes.SourceFile>;
6+
afterDeclarations?: tsTypes.TransformerFactory<tsTypes.Bundle | tsTypes.SourceFile>;
7+
}
8+
export type TransformerFactoryCreator = (ls: tsTypes.LanguageService) => tsTypes.CustomTransformers | ICustomTransformer;
9+
export interface IOptions {
10+
cwd: string;
11+
include: string | string[];
12+
exclude: string | string[];
13+
check: boolean;
14+
verbosity: number;
15+
clean: boolean;
16+
cacheRoot: string;
17+
abortOnError: boolean;
18+
rollupCommonJSResolveHack: boolean;
19+
tsconfig?: string;
20+
useTsconfigDeclarationDir: boolean;
21+
typescript: typeof tsModule;
22+
tsconfigOverride: any;
23+
transformers: TransformerFactoryCreator[];
24+
tsconfigDefaults: any;
25+
sourceMapCallback: (id: string, map: string) => void;
26+
objectHashIgnoreUnknownHack: boolean;
27+
}
2828
//# sourceMappingURL=ioptions.d.ts.map

dist/ioptions.d.ts.map

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

dist/parse-tsconfig.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { RollupContext } from "./context";
2-
import { IOptions } from "./ioptions";
3-
export declare function parseTsConfig(context: RollupContext, pluginOptions: IOptions): {
4-
parsedTsConfig: import("typescript").ParsedCommandLine;
5-
fileName: string | undefined;
6-
};
1+
import { RollupContext } from "./context";
2+
import { IOptions } from "./ioptions";
3+
export declare function parseTsConfig(context: RollupContext, pluginOptions: IOptions): {
4+
parsedTsConfig: import("typescript").ParsedCommandLine;
5+
fileName: string | undefined;
6+
};
77
//# sourceMappingURL=parse-tsconfig.d.ts.map

dist/rollingcache.d.ts

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
import { ICache } from "./icache";
2-
/**
3-
* Saves data in new cache folder or reads it from old one.
4-
* Avoids perpetually growing cache and situations when things need to consider changed and then reverted data to be changed.
5-
*/
6-
export declare class RollingCache<DataType> implements ICache<DataType> {
7-
private cacheRoot;
8-
private oldCacheRoot;
9-
private newCacheRoot;
10-
private rolled;
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 */
14-
exists(name: string): boolean;
15-
path(name: string): string;
16-
/** @returns true if old cache contains all names and nothing more */
17-
match(names: string[]): boolean;
18-
/** @returns data for name, must exist in either old cache or new cache */
19-
read(name: string): DataType | null | undefined;
20-
write(name: string, data: DataType): void;
21-
touch(name: string): void;
22-
/** clears old cache and moves new in its place */
23-
roll(): void;
24-
}
1+
import { ICache } from "./icache";
2+
/**
3+
* Saves data in new cache folder or reads it from old one.
4+
* Avoids perpetually growing cache and situations when things need to consider changed and then reverted data to be changed.
5+
*/
6+
export declare class RollingCache<DataType> implements ICache<DataType> {
7+
private cacheRoot;
8+
private oldCacheRoot;
9+
private newCacheRoot;
10+
private rolled;
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 */
14+
exists(name: string): boolean;
15+
path(name: string): string;
16+
/** @returns true if old cache contains all names and nothing more */
17+
match(names: string[]): boolean;
18+
/** @returns data for name, must exist in either old cache or new cache */
19+
read(name: string): DataType | null | undefined;
20+
write(name: string, data: DataType): void;
21+
touch(name: string): void;
22+
/** clears old cache and moves new in its place */
23+
roll(): void;
24+
}
2525
//# sourceMappingURL=rollingcache.d.ts.map

0 commit comments

Comments
 (0)