From 6fd14e718d9f1a2e6eb1c1abda9af7a9d1540602 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 26 Aug 2016 15:19:04 +0200 Subject: [PATCH] Use the new pxtc namespace --- cmds/cmds.ts | 6 +++--- tests/base/tsconfig.json | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 tests/base/tsconfig.json diff --git a/cmds/cmds.ts b/cmds/cmds.ts index 727387d5..f4b99f42 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: ts.pxt.CompileResult) { +export function deployCoreAsync(res: pxtc.CompileResult) { return getBitDrivesAsync() .then(drives => { if (drives.length == 0) { console.log("cannot find any drives to deploy to") } else { - console.log(`copy ${ts.pxt.BINARY_HEX} to ` + drives.join(", ")) + console.log(`copy ${pxtc.BINARY_HEX} to ` + drives.join(", ")) } return Promise.map(drives, d => - writeFileAsync(d + ts.pxt.BINARY_HEX, res.outfiles[ts.pxt.BINARY_HEX]) + writeFileAsync(d + pxtc.BINARY_HEX, res.outfiles[pxtc.BINARY_HEX]) .then(() => { console.log("wrote hex file to " + d) })) diff --git a/tests/base/tsconfig.json b/tests/base/tsconfig.json new file mode 100644 index 00000000..1ba59f2c --- /dev/null +++ b/tests/base/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "target": "es5", + "noImplicitAny": true, + "outDir": "built", + "rootDir": "." + } +}