File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "js-package-template " : {
2
+ "js-package" : {
3
3
description : "JS package template" ,
4
4
url : "https://github.com/jlyonsmith/js-package-template.git" ,
5
5
} ,
6
- "node-cli-tool-template " : {
6
+ "node-cli" : {
7
7
description : "Node CLI tool template" ,
8
8
url : "https://github.com/jlyonsmith/node-cli-tool-template.git" ,
9
9
} ,
10
- "phaser-template" : {
10
+ "node-ts-cli" : {
11
+ description : "Node/TypeScript CLI template" ,
12
+ url : "https://github.com/jlyonsmith/node-ts-cli-template.git" ,
13
+ } ,
14
+ phaser : {
11
15
description : "Phaser game template" ,
12
16
url : "https://github.com/jlyonsmith/phaser-template.git" ,
13
17
} ,
18
+ "gatsby-mui" : {
19
+ description : "Gatsby with Material-UI template" ,
20
+ url : "https://github.com/jlyonsmith/gatsby-mui-template.git" ,
21
+ } ,
14
22
}
Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ export class GitExtraTool {
52
52
this . debug = options . debug
53
53
}
54
54
55
- async ensureCommands ( cmds ) {
55
+ async ensureCommands ( cmds ) : Promise < void > {
56
56
this . cmds = this . cmds || new Set ( )
57
57
58
58
const newCmds = cmds . filter ( ( cmd ) => ! this . cmds . has ( cmd ) )
59
59
const exists = await Promise . all ( newCmds . map ( ( cmd ) => commandExists ( cmd ) ) )
60
60
61
61
newCmds . forEach ( ( cmd ) => {
62
- if ( ! ! exists [ cmd ] ) {
62
+ if ( exists [ cmd ] ) {
63
63
throw new Error ( `Command '${ cmd } ' does not exist. Please install it.` )
64
64
} else {
65
65
this . cmds . add ( cmd )
You can’t perform that action at this time.
0 commit comments