File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/skott/src/rendering/terminal Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as D from "io-ts/lib/Decoder.js";
33
44export interface TerminalConfig {
55 watch : boolean ;
6- displayMode : "raw" | "file-tree" | "graph" | "webapp" ;
6+ displayMode : "raw" | "file-tree" | "graph" | "webapp" | ( string & { } ) ;
77 showCircularDependencies : boolean ;
88 showUnusedDependencies : boolean ;
99 showUnusedFiles : boolean ;
@@ -21,12 +21,10 @@ export const defaultTerminalConfig: TerminalConfig = {
2121
2222const terminalSchema = D . struct ( {
2323 watch : D . boolean ,
24- displayMode : D . union (
25- D . literal ( "raw" ) ,
26- D . literal ( "file-tree" ) ,
27- D . literal ( "graph" ) ,
28- D . literal ( "webapp" )
29- ) ,
24+ // Allow any string so that plugin-provided display modes (e.g. "json") are
25+ // not rejected at validation time. Unknown modes are forwarded to the
26+ // static-file plugin at runtime.
27+ displayMode : D . string ,
3028 showCircularDependencies : D . boolean ,
3129 showUnusedDependencies : D . boolean ,
3230 exitCodeOnCircularDependencies : D . number
You can’t perform that action at this time.
0 commit comments