Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move the bin entrypoint out of index.ts (#377)
This commit moves the call to bootstrap the express server out of index.ts. This is an important change now that we have declarative function signatures because we expect developers to include an import statement for the functions-framework. Before this change doing so would have automatically started the express http server which makes is hard to do things like write unit tests.
- Loading branch information
1 parent
7617801
commit a71f405
Showing
3 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters