Skip to content

Commit

Permalink
[TypeSpecValidation] Enable simple-git logging (#24656)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored Jun 30, 2023
1 parent 6107f25 commit 4ffdb08
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eng/tools/TypeSpecValidation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
"tsv": "cmd/tsv.js"
},
"dependencies": {
"debug": "^4.3.4",
"simple-git": "^3.16.0"
},
"devDependencies": {
"@types/debug": "^4.1.8",
"@types/node": "^18.16.18"
}
}
3 changes: 3 additions & 0 deletions eng/tools/TypeSpecValidation/src/TypeSpecValidation.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { exec } from "child_process";
import debug from "debug";
import { access } from "fs/promises"
import { parseArgs, ParseArgsConfig } from 'node:util';
import path from "path";
import { simpleGit } from 'simple-git';

debug.enable('simple-git');

async function runCmd(cmd: string, cwd: string) {
console.log(`run command:${cmd}`)
const { err, stdout, stderr } = await new Promise((res) =>
Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ffdb08

Please sign in to comment.