Skip to content

Commit

Permalink
fix: better message for when prebuild is detected
Browse files Browse the repository at this point in the history
Yarn in PnP mode strictly speaking does not use node_modules so this way the log line doesn't "lie" about what it may have found
  • Loading branch information
favna committed May 3, 2024
1 parent 5f7191b commit 2d4c4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodejs/supply/supply.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func (s *Supplier) BuildDependencies() error {
}

if s.IsVendored {
s.Log.Info("Prebuild detected (node_modules already exists)")
s.Log.Info("Prebuild detected (vendored dependencies exist)")
switch {
case s.UseYarn:
if err := s.Yarn.Rebuild(s.Stager.BuildDir(), s.Stager.CacheDir()); err != nil {
Expand Down

0 comments on commit 2d4c4f4

Please sign in to comment.