mviz 1.7.0-pre.1 → 1.7.0-pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +4 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -222,9 +222,11 @@ async function main() {
222
222
  }
223
223
  }
224
224
  else if (outputFile) {
225
- // Write to file and print success message
225
+ // Write to file and print success message. Goes to stderr so the
226
+ // message doesn't corrupt captured output when callers pipe through
227
+ // `-o /dev/stdout` for inline-rendering workflows (issue #247, #275).
226
228
  writeFileSync(resolve(outputFile), html);
227
- console.log(`✓ Created ${outputFile}`);
229
+ console.error(`✓ Created ${outputFile}`);
228
230
  }
229
231
  else {
230
232
  // No -o flag: require it unless piping
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mviz",
3
- "version": "1.7.0-pre.1",
3
+ "version": "1.7.0-pre.2",
4
4
  "description": "A chart & report builder designed for use by AI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",