Skip to content

Commit 92df28c

Browse files
committed
chore: bump version to 0.0.3-dev
1 parent 1626d64 commit 92df28c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Connect VS Code to your Coder Workspaces",
66
"repository": "https://github.com/cdr/vscode-coder",
77
"preview": true,
8-
"version": "0.0.3",
8+
"version": "0.0.3-dev",
99
"engines": {
1010
"vscode": "^1.54.0"
1111
},

src/utils.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as path from "path"
22
import * as cp from "child_process"
33
import * as vscode from "vscode"
4-
import * as nodeWhich from 'which'
4+
import * as nodeWhich from "which"
55

66
export const mediaDir = path.join(__filename, "..", "..", "media")
77

@@ -11,9 +11,9 @@ export const exec = async (command: string): Promise<string> => {
1111
})
1212
}
1313

14-
export const execCombined = async (command: string): Promise<{stderr: string, stdout: string}> => {
14+
export const execCombined = async (command: string): Promise<{ stderr: string; stdout: string }> => {
1515
return new Promise((res, rej) => {
16-
cp.exec(command, (err, stdout, stderr) => (err ? rej(err) : res({stderr, stdout})))
16+
cp.exec(command, (err, stdout, stderr) => (err ? rej(err) : res({ stderr, stdout })))
1717
})
1818
}
1919

@@ -24,7 +24,9 @@ export const execJSON = async <T>(command: string): Promise<T> => {
2424

2525
// binaryExists returns "true" if the binary is found in $PATH
2626
export const binaryExists = async (bin: string): Promise<boolean> => {
27-
return new Promise((res) => { nodeWhich(bin, err => res(!err)) })
27+
return new Promise((res) => {
28+
nodeWhich(bin, (err) => res(!err))
29+
})
2830
}
2931

3032
export const bubbleError = (f: () => void) => {

0 commit comments

Comments
 (0)