Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
fix: readding folder paths (#1248)
Browse files Browse the repository at this point in the history
* fix: bundling with multiple dots in filename

* fix: readding folder paths

* fix: retain folder dots
  • Loading branch information
MaximilianSchon authored Oct 11, 2024
1 parent de4b2c8 commit b259133
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/runtime/node/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ func (r *Runtime) Build(ctx context.Context, input *runtime.BuildInput) (*runtim
fileName := strings.TrimSuffix(filepath.Base(rel), filepath.Ext(rel))
// Lambda handler can only contain 1 dot separating the file name and function name
fileName = strings.ReplaceAll(fileName, ".", "-")
handler := fileName + filepath.Ext(input.Handler)
target := filepath.Join(input.Out(), fileName+extension)
folder := filepath.Dir(rel)
path := filepath.Join(folder, fileName)
handler := path + filepath.Ext(input.Handler)
target := filepath.Join(input.Out(), path+extension)
slog.Info("loader info", "loader", properties.Loader)

loader := map[string]esbuild.Loader{}
Expand Down

0 comments on commit b259133

Please sign in to comment.