Skip to content

Commit

Permalink
RollupFileBuild -> RollupSingleFileBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed May 26, 2018
1 parent b377265 commit 9ec757d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/rollup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
OutputChunk,
OutputBundle,
OutputFile,
RollupFileBuild,
RollupSingleFileBuild,
RollupBuild,
ChunkDefinition
} from './types';
Expand Down Expand Up @@ -103,7 +103,7 @@ function getInputOptions(rawInputOptions: GenericConfigObject): any {

export default function rollup(
rawInputOptions: GenericConfigObject
): Promise<RollupFileBuild | RollupBuild> {
): Promise<RollupSingleFileBuild | RollupBuild> {
try {
const inputOptions = getInputOptions(rawInputOptions);
initialiseTimers(inputOptions);
Expand Down Expand Up @@ -366,7 +366,7 @@ export default function rollup(
}

const cache = graph.getCache();
const result: RollupFileBuild | RollupBuild = {
const result: RollupSingleFileBuild | RollupBuild = {
cache,
generate: <any>((rawOutputOptions: GenericConfigObject) => {
const promise = generate(rawOutputOptions, false).then(
Expand Down
4 changes: 2 additions & 2 deletions src/rollup/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export interface RollupCache {
modules: ModuleJSON[];
}

export interface RollupFileBuild {
export interface RollupSingleFileBuild {
// TODO: consider deprecating to match code splitting
imports: string[];
exports: { name: string; originalName: string; moduleId: string }[];
Expand Down Expand Up @@ -357,7 +357,7 @@ export interface RollupDirOptions extends InputOptions {
output?: OutputOptionsDir;
}

export function rollup(options: RollupFileOptions): Promise<RollupFileBuild>;
export function rollup(options: RollupFileOptions): Promise<RollupSingleFileBuild>;
export function rollup(options: RollupDirOptions): Promise<RollupBuild>;

export interface Watcher extends EventEmitter {}
Expand Down
4 changes: 2 additions & 2 deletions src/watch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rollup from '../rollup/index';
import {
InputOptions,
OutputOptions,
RollupFileBuild,
RollupSingleFileBuild,
RollupBuild,
OutputChunk,
ModuleJSON,
Expand Down Expand Up @@ -209,7 +209,7 @@ export class Task {
})
).then(() => result);
})
.then((result: RollupFileBuild | RollupBuild) => {
.then((result: RollupSingleFileBuild | RollupBuild) => {
this.watcher.emit('event', {
code: 'BUNDLE_END',
input: this.inputOptions.input,
Expand Down

0 comments on commit 9ec757d

Please sign in to comment.