@@ -30,22 +30,22 @@ const simpleGit = require('simple-git');
30
30
simpleGit ().clean (simpleGit .CleanOptions .FORCE );
31
31
32
32
// or use named properties
33
- const {default : simpleGit , CleanOptions } = require (' simple-git' );
33
+ const {simpleGit , CleanOptions } = require (' simple-git' );
34
34
simpleGit ().clean (CleanOptions .FORCE );
35
35
```
36
36
37
37
Include into your JavaScript app as an ES Module:
38
38
39
39
``` javascript
40
- import simpleGit , { CleanOptions } from ' simple-git' ;
40
+ import { simpleGit , CleanOptions } from ' simple-git' ;
41
41
42
42
simpleGit ().clean (CleanOptions .FORCE );
43
43
```
44
44
45
45
Include in a TypeScript app using the bundled type definitions:
46
46
47
47
``` typescript
48
- import simpleGit , { SimpleGit , CleanOptions } from ' simple-git' ;
48
+ import { simpleGit , SimpleGit , CleanOptions } from ' simple-git' ;
49
49
50
50
const git: SimpleGit = simpleGit ().clean (CleanOptions .FORCE );
51
51
```
@@ -55,7 +55,7 @@ const git: SimpleGit = simpleGit().clean(CleanOptions.FORCE);
55
55
Configure each ` simple-git ` instance with a properties object passed to the main ` simpleGit ` function:
56
56
57
57
``` typescript
58
- import simpleGit , { SimpleGit , SimpleGitOptions } from ' simple-git' ;
58
+ import { simpleGit , SimpleGit , SimpleGitOptions } from ' simple-git' ;
59
59
60
60
const options: Partial <SimpleGitOptions > = {
61
61
baseDir: process .cwd (),
@@ -580,7 +580,7 @@ if (mergeSummary.failed) {
580
580
With typed errors available in TypeScript
581
581
582
582
``` typescript
583
- import simpleGit , { MergeSummary , GitResponseError } from ' simple-git' ;
583
+ import { simpleGit , MergeSummary , GitResponseError } from ' simple-git' ;
584
584
try {
585
585
const mergeSummary = await simpleGit ().merge ();
586
586
console .log (` Merged ${ mergeSummary .merges .length } files ` );
0 commit comments