Skip to content

resources/utils.ts: npm/git will inherit stdout by default #3724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 4, 2022

Conversation

IvanGoncharov
Copy link
Member

Motivation: it's hard to debug scripts if stdout is not inherit
at the same time we need to capture output of some git/npm commands.
AFAIK node.js doesn't allow both "inherit" and "pipe" stdout, so
instead we create wrapper for npm/git where subcommands that doesn't
return values just "inherit" stdout.

@netlify
Copy link

netlify bot commented Sep 4, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit aa6fdf9
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6314cee1bbc0a80008e47856
😎 Deploy Preview https://deploy-preview-3724--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

github-actions bot commented Sep 4, 2022

Hi @IvanGoncharov, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

Motivation: it's hard to debug scripts if stdout is not inherit
at the same time we need to capture output of some git/npm commands.
AFAIK node.js doesn't allow both "inherit" and "pipe" stdout, so
instead we create wrapper for npm/git where subcommands that doesn't
return values just "inherit" stdout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant