Skip to content

Commit 4ffdb08

Browse files
authored
[TypeSpecValidation] Enable simple-git logging (#24656)
1 parent 6107f25 commit 4ffdb08

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

eng/tools/TypeSpecValidation/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
"tsv": "cmd/tsv.js"
99
},
1010
"dependencies": {
11+
"debug": "^4.3.4",
1112
"simple-git": "^3.16.0"
1213
},
1314
"devDependencies": {
15+
"@types/debug": "^4.1.8",
1416
"@types/node": "^18.16.18"
1517
}
1618
}

eng/tools/TypeSpecValidation/src/TypeSpecValidation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { exec } from "child_process";
2+
import debug from "debug";
23
import { access } from "fs/promises"
34
import { parseArgs, ParseArgsConfig } from 'node:util';
45
import path from "path";
56
import { simpleGit } from 'simple-git';
67

8+
debug.enable('simple-git');
9+
710
async function runCmd(cmd: string, cwd: string) {
811
console.log(`run command:${cmd}`)
912
const { err, stdout, stderr } = await new Promise((res) =>

package-lock.json

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

0 commit comments

Comments
 (0)