facebook / facebook/jscodeshift

Restructure runner and logging

Open
#80 0 comments 0 reactions 0 assignees View on GitHub
improvement
Dominant language
JavaScript
Stars
10k
Forks
498
PR merge metrics
No merged PRs in 30d

Description

Instead of using `console.log`, the runner should write to `stdout` and `stderr`, or maybe to streams passed to it. Either way, the runner shouldn't output anything, but return information about the progress / result to the caller, one way or the other.

The caller (e.g. the jscodeshift binary) can then decide how to deal with this information and also set proper exit codes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.