Do not use deprecated rollup options (#127)

This commit is contained in:
Florent Cailhol 2019-01-03 19:20:33 +01:00 committed by Eugene Zolenko
parent 02ed7acf1d
commit b1d5c07b5c
7 changed files with 40 additions and 11 deletions

5
dist/index.d.ts vendored
View File

@ -9,7 +9,8 @@ export default function typescript(options?: Partial<IOptions>): {
resolveId(importee: string, importer: string): string | null;
load(id: string): string | undefined;
transform(this: IRollupContext, code: string, id: string): IRollupCode | undefined;
ongenerate(): void;
onwrite({ dest, file }: IRollupOptions): void;
generateBundle(options: IRollupOptions, _bundle: any, isWrite: boolean): void;
_ongenerate(): void;
_onwrite({ dest, file }: IRollupOptions): void;
};
//# sourceMappingURL=index.d.ts.map

2
dist/index.d.ts.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,cAAc,EAAkB,MAAM,WAAW,CAAC;AAE3E,OAAO,EAA8B,WAAW,EAAqB,MAAM,WAAW,CAAC;AAKvF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;;;;;;;;EAyV7D"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,cAAc,EAAkB,MAAM,WAAW,CAAC;AAE3E,OAAO,EAA8B,WAAW,EAAqB,MAAM,WAAW,CAAC;AAKvF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;;;;;;;;;EAqW7D"}

View File

@ -21602,7 +21602,15 @@ function typescript(options) {
}
return undefined;
},
ongenerate() {
generateBundle(options, _bundle, isWrite) {
if (isWrite) {
this._onwrite(options);
}
else {
this._ongenerate();
}
},
_ongenerate() {
context.debug(() => `generating target ${generateRound + 1}`);
if (pluginOptions.check && watchMode && generateRound === 0) {
cache().walkTree((id) => {
@ -21624,7 +21632,7 @@ function typescript(options) {
cache().done();
generateRound++;
},
onwrite({ dest, file }) {
_onwrite({ dest, file }) {
if (parsedConfig.options.declaration) {
lodash_2(parsedConfig.fileNames, (name) => {
const key = normalize(name);

File diff suppressed because one or more lines are too long

View File

@ -21598,7 +21598,15 @@ function typescript(options) {
}
return undefined;
},
ongenerate() {
generateBundle(options, _bundle, isWrite) {
if (isWrite) {
this._onwrite(options);
}
else {
this._ongenerate();
}
},
_ongenerate() {
context.debug(() => `generating target ${generateRound + 1}`);
if (pluginOptions.check && watchMode && generateRound === 0) {
cache().walkTree((id) => {
@ -21620,7 +21628,7 @@ function typescript(options) {
cache().done();
generateRound++;
},
onwrite({ dest, file }) {
_onwrite({ dest, file }) {
if (parsedConfig.options.declaration) {
lodash_2(parsedConfig.fileNames, (name) => {
const key = normalize$1(name);

File diff suppressed because one or more lines are too long

View File

@ -270,7 +270,19 @@ export default function typescript(options?: Partial<IOptions>)
return undefined;
},
ongenerate(): void
generateBundle(options: IRollupOptions, _bundle: any, isWrite: boolean): void
{
if (isWrite)
{
this._onwrite(options);
}
else
{
this._ongenerate();
}
},
_ongenerate(): void
{
context.debug(() => `generating target ${generateRound + 1}`);
@ -308,7 +320,7 @@ export default function typescript(options?: Partial<IOptions>)
generateRound++;
},
onwrite({ dest, file }: IRollupOptions)
_onwrite({ dest, file }: IRollupOptions): void
{
if (parsedConfig.options.declaration)
{