From 38fb36087a6e7ad4a0737be6131d6b8eee889fb3 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 26 Aug 2016 17:51:15 -0700 Subject: [PATCH] fixing local deployment (pxtc import issue) --- cmds/cmds.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmds/cmds.ts b/cmds/cmds.ts index f4b99f42..d39aebd4 100644 --- a/cmds/cmds.ts +++ b/cmds/cmds.ts @@ -9,16 +9,16 @@ let execAsync: (cmd: string, options?: { cwd?: string }) => Promise = Pr let readDirAsync = Promise.promisify(fs.readdir) -export function deployCoreAsync(res: pxtc.CompileResult) { +export function deployCoreAsync(res: ts.pxtc.CompileResult) { return getBitDrivesAsync() .then(drives => { if (drives.length == 0) { console.log("cannot find any drives to deploy to") } else { - console.log(`copy ${pxtc.BINARY_HEX} to ` + drives.join(", ")) + console.log(`copy ${ts.pxtc.BINARY_HEX} to ` + drives.join(", ")) } return Promise.map(drives, d => - writeFileAsync(d + pxtc.BINARY_HEX, res.outfiles[pxtc.BINARY_HEX]) + writeFileAsync(d + ts.pxtc.BINARY_HEX, res.outfiles[ts.pxtc.BINARY_HEX]) .then(() => { console.log("wrote hex file to " + d) }))