Skip to content

Commit de24e10

Browse files
author
Phillip Wittrock
authored
Merge pull request #138 from prachirp/console
Override kpt-functions console
2 parents 936453c + 5a6f54e commit de24e10

File tree

2 files changed

+30
-50
lines changed

2 files changed

+30
-50
lines changed

ts/kpt-functions/package-lock.json

Lines changed: 27 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/kpt-functions/src/io.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import { DumpOptions, safeDump, safeLoad } from 'js-yaml';
1818
import rw from 'rw';
1919
import { Configs, KubernetesObject, ResourceList, Result } from './types';
2020

21+
// Stdout is used for chaining functions so override global console object to send output to stderr.
22+
console = new console.Console(process.stderr, process.stderr);
23+
2124
export enum FileFormat {
2225
YAML,
2326
JSON,

0 commit comments

Comments
 (0)