Skip to content

Commit

Permalink
Make launcher the default export. (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone authored and paulirish committed Dec 2, 2017
1 parent ee6649c commit 5617473
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chrome-launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const sigintListener = async () => {
process.exit(_SIGINT_EXIT_CODE);
};

export async function launch(opts: Options = {}): Promise<LaunchedChrome> {
async function launch(opts: Options = {}): Promise<LaunchedChrome> {
opts.handleSIGINT = defaults(opts.handleSIGINT, true);

const instance = new Launcher(opts);
Expand All @@ -82,7 +82,7 @@ export async function launch(opts: Options = {}): Promise<LaunchedChrome> {
return {pid: instance.pid!, port: instance.port!, kill};
}

export class Launcher {
class Launcher {
private tmpDirandPidFileReady = false;
private pidFile: string;
private startingUrl: string;
Expand Down Expand Up @@ -355,3 +355,6 @@ export class Launcher {
});
}
};

export default Launcher;
export {Launcher, launch};

0 comments on commit 5617473

Please sign in to comment.