Skip to content

Honor the output file option in dsv2dsv - #114

Closed
FFspiky wants to merge 1 commit into
d3:mainfrom
FFspiky:fix/dsv2dsv-output-file
Closed

FFspiky wants to merge 1 commit into
d3:mainfrom
FFspiky:fix/dsv2dsv-output-file

Conversation

@FFspiky

@FFspiky FFspiky commented Nov 16, 2026

Copy link
Copy Markdown

dsv2dsv -o output.tsv currently writes the converted data to stdout and never creates output.tsv, because the write target is hard-coded to "-". Pass the parsed out option to rw.dash.writeFile, consistent with the other converters.

Add real CLI tests for -o and --out (including paths containing spaces), default and explicit stdout, and UTF-16LE file output. The tests build the ESM package entry before launching the unchanged CLI in child processes.

Validation on macOS arm64:

  • New tests against the original code: 3 failed, 2 passed.
  • pnpm run test --run: 141 passed on Node.js 24.22.3 and 25.9.0.
  • pnpm run lint and pnpm exec rollup -c: passed on Node.js 25.9.0.

AI assistance: OpenAI Codex authored the patch and tests and ran these local checks.

@FFspiky

FFspiky commented Nov 16, 2026

Copy link
Copy Markdown
Author

The Test workflow is waiting for approval (action_required). Could a maintainer approve this run? The local Node 24/25 test results and build/lint checks are recorded in the PR description.

@FFspiky FFspiky closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant