-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously the NodeJSMainModule function would return an error if a NodeJS application did not have a package.json file. This was incorrect as it is possible to have a legal NodeJS application without one and the Paketo NodeJS buildpack supports this style of application. This change updates the detection logic to return server.js in cases where there is no package.json or the package.json does not explicitly identify a main, in line with the behavior of the Paketo NodeJS buildpack. Signed-off-by: Ben Hale <bhale@vmware.com>
- Loading branch information
Showing
2 changed files
with
19 additions
and
15 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