Skip to content

Commit

Permalink
feat(builders): add unresolved flag to nodejs builder
Browse files Browse the repository at this point in the history
  • Loading branch information
xizhao committed Jul 9, 2018
1 parent 517d2c0 commit 867c912
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builders/nodejs/nodejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ func (builder *NodeJSBuilder) Analyze(m module.Module, allowUnresolved bool) ([]
func (builder *NodeJSBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error) {
log.Logger.Debugf("Checking Nodejs build: %#v %#v", m, allowUnresolved)

if allowUnresolved {
return true, nil
}

// test: there are some package.json with no deps (no node_modules)
// TODO: Check if the installed modules are consistent with what's in the
// actual manifest.
Expand Down

0 comments on commit 867c912

Please sign in to comment.