Skip to content

Commit 882c07b

Browse files
authored
pipe npm install/build failures to stdout/stderr (#237)
## What was changed pipe npm install/build failures to stdout/stderr ## Why? help debugging
1 parent 2387eeb commit 882c07b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

workers/build.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ func (b *Builder) buildTypeScript(ctx context.Context, baseDir string) (sdkbuild
169169

170170
cmd = exec.Command("npm", "run", "build")
171171
cmd.Dir = baseDir
172+
cmd.Stdout = b.stdout
173+
cmd.Stderr = b.stderr
172174
err = cmd.Run()
173175
if err != nil {
174176
return nil, fmt.Errorf("npm run build in ./workers/typescript failed: %w", err)

0 commit comments

Comments
 (0)