Skip to content

Commit a9bbc94

Browse files
fix: extend displayMode options in TerminalConfig to include additional formats
1 parent 676ddb0 commit a9bbc94

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/skott/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"scripts": {
3131
"benchmark": "pnpm vitest bench --config=test/vitest.benchmark.js && node test/benchmark/rewrite-result.js",
3232
"build": "rimraf ./dist && tsc --project tsconfig.build.json",
33+
"typecheck": "tsc --noEmit",
3334
"build:test": "rimraf ./test_dist && tsc --project tsconfig.test.json",
3435
"lint": "eslint .",
3536
"lint:fix": "pnpm run lint --fix",

packages/skott/src/rendering/terminal/terminal-config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import * as D from "io-ts/lib/Decoder.js";
33

44
export interface TerminalConfig {
55
watch: boolean;
6-
displayMode: "raw" | "file-tree" | "graph" | "webapp" | (string & {});
6+
displayMode:
7+
| "raw"
8+
| "file-tree"
9+
| "graph"
10+
| "webapp"
11+
| "md"
12+
| "json"
13+
| "svg"
14+
| "png";
715
showCircularDependencies: boolean;
816
showUnusedDependencies: boolean;
917
showUnusedFiles: boolean;

0 commit comments

Comments
 (0)