- fix for plugin name
This commit is contained in:
Eugene Zolenko 2017-11-03 16:49:05 -06:00
parent e00fd325c7
commit 6135555b5c
7 changed files with 16 additions and 11 deletions

1
dist/index.d.ts vendored
View File

@ -4,6 +4,7 @@ import { IRollupOptions } from "./irollup-options";
import { IOptions } from "./ioptions";
import { Partial } from "./partial";
export default function typescript(options?: Partial<IOptions>): {
name: string;
options(config: IRollupOptions): void;
resolveId(importee: string, importer: string): string | null;
load(id: string): string | undefined;

View File

@ -17197,7 +17197,7 @@ var RollupContext = /** @class */ (function () {
if (this.verbosity < VerbosityLevel.Warning)
return;
if (this.hasContext)
this.context.warn("" + this.prefix + message);
this.context.warn("" + message);
else
console.log("" + this.prefix + message);
};
@ -17206,9 +17206,9 @@ var RollupContext = /** @class */ (function () {
return;
if (this.hasContext) {
if (this.bail)
this.context.error("" + this.prefix + message);
this.context.error("" + message);
else
this.context.warn("" + this.prefix + message);
this.context.warn("" + message);
}
else
console.log("" + this.prefix + message);
@ -19781,6 +19781,7 @@ function typescript(options) {
});
setTypescriptModule(pluginOptions.typescript);
return {
name: "rpt2",
options: function (config) {
rollupOptions = config;
context = new ConsoleContext(pluginOptions.verbosity, "rpt2: ");

File diff suppressed because one or more lines are too long

View File

@ -17193,7 +17193,7 @@ var RollupContext = /** @class */ (function () {
if (this.verbosity < VerbosityLevel.Warning)
return;
if (this.hasContext)
this.context.warn("" + this.prefix + message);
this.context.warn("" + message);
else
console.log("" + this.prefix + message);
};
@ -17202,9 +17202,9 @@ var RollupContext = /** @class */ (function () {
return;
if (this.hasContext) {
if (this.bail)
this.context.error("" + this.prefix + message);
this.context.error("" + message);
else
this.context.warn("" + this.prefix + message);
this.context.warn("" + message);
}
else
console.log("" + this.prefix + message);
@ -19777,6 +19777,7 @@ function typescript(options) {
});
setTypescriptModule(pluginOptions.typescript);
return {
name: "rpt2",
options: function (config) {
rollupOptions = config;
context = new ConsoleContext(pluginOptions.verbosity, "rpt2: ");

File diff suppressed because one or more lines are too long

View File

@ -63,6 +63,8 @@ export default function typescript(options?: Partial<IOptions>)
return {
name: "rpt2",
options(config: IRollupOptions)
{
rollupOptions = config;

View File

@ -16,7 +16,7 @@ export class RollupContext implements IContext
return;
if (this.hasContext)
this.context.warn(`${this.prefix}${message}`);
this.context.warn(`${message}`);
else
console.log(`${this.prefix}${message}`);
}
@ -29,9 +29,9 @@ export class RollupContext implements IContext
if (this.hasContext)
{
if (this.bail)
this.context.error(`${this.prefix}${message}`);
this.context.error(`${message}`);
else
this.context.warn(`${this.prefix}${message}`);
this.context.warn(`${message}`);
}
else
console.log(`${this.prefix}${message}`);