Skip to content

Commit

Permalink
Expose more things in the main package export
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Jan 2, 2022
1 parent d8c7ae2 commit 6aa9654
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/index.ts
@@ -1,6 +1,6 @@
import { Readable } from 'stream';
import { CommandIdentifier } from './command';
import { concurrently, ConcurrentlyCommandInput, ConcurrentlyOptions as BaseConcurrentlyOptions } from './concurrently';
import { CloseEvent, Command, CommandIdentifier, TimerEvent } from './command';
import { concurrently, ConcurrentlyCommandInput, ConcurrentlyOptions as BaseConcurrentlyOptions, ConcurrentlyResult } from './concurrently';
import { FlowController } from './flow-control/flow-controller';
import { InputHandler } from './flow-control/input-handler';
import { KillOnSignal } from './flow-control/kill-on-signal';
Expand Down Expand Up @@ -125,11 +125,21 @@ export default (commands: ConcurrentlyCommandInput[], options: Partial<Concurren
});
};

// Export all flow controllers and the main concurrently function,
// Export all flow controllers, types, and the main concurrently function,
// so that 3rd-parties can use them however they want
export {
concurrently,
ConcurrentlyCommandInput,
ConcurrentlyResult,
Logger,

// Command specific
Command,
CloseEvent,
TimerEvent,
CommandIdentifier,

// Flow controllers
FlowController,
InputHandler,
KillOnSignal,
Expand Down

0 comments on commit 6aa9654

Please sign in to comment.