Skip to content

Commit 687783f

Browse files
committed
refactor: use ES module syntax
1 parent f3fe703 commit 687783f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/git/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
*
44
* Run Git CLI commands within the extension and capture the text output.
55
*/
6-
import util = require("util");
7-
import childProcess = require("child_process");
6+
import { exec as _exec } from "child_process";
7+
import * as util from "util";
88
import { Repository } from "../api/git";
99

10-
const exec = util.promisify(childProcess.exec);
10+
const exec = util.promisify(_exec);
1111

1212
/**
1313
* Run a `git` subcommand and return the result, with stdout and stderr available.

0 commit comments

Comments
 (0)