Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit a7efc9e

Browse files
jthoms1danbucholtz
authored andcommitted
refactor(serve): serve as an export and return config from its promise. (#705)
1 parent 9da637b commit a7efc9e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export { lint } from './lint';
77
export { minify } from './minify';
88
export { ngc } from './ngc';
99
export { sass, sassUpdate } from './sass';
10+
export { serve } from './serve';
1011
export { transpile } from './transpile';
1112
export { uglifyjs } from './uglifyjs';
1213
export { watch, buildUpdate } from './watch';

src/serve.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export function serve(context: BuildContext) {
5252
})
5353
.then(() => {
5454
onReady(config, context);
55+
return config;
5556
}, (err: BuildError) => {
5657
throw err;
5758
})

0 commit comments

Comments
 (0)