Repository navigation
fix: CLI의 큰 JSON 출력 잘림 방지 - #227
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
올리브영처럼 큰 JSON을 반환하는 CLI 조회를 파이프로 읽으면 강제 프로세스 종료가 stdout 배출보다 먼저 실행되어 JSON이 잘렸습니다. 운영 공개 패키지와 256KiB 자식 프로세스에서 재현했습니다. npm bin 및 직접 실행 CLI가 종료 코드만 설정해 출력을 모두 전달한 후 자연스럽게 종료하도록 수정합니다.
검증: 실제 npm·직접 실행 소스의 256KiB JSON 파이프 검사와 비정상 종료 코드 보존, 전체 2,634개 테스트와 커버리지 100%, npm run check 및 build 통과. 독립 리뷰 완료.