Fix command line deploy
This commit is contained in:
parent
a9be582f90
commit
2ebe96e563
@ -2,14 +2,10 @@
|
|||||||
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
|
||||||
require("./editor/deploy")
|
const deploy = require("./editor/deploy")
|
||||||
|
|
||||||
declare namespace pxt.editor {
|
|
||||||
function deployCoreAsync(resp: pxtc.CompileResult, disconnect?: boolean): Promise<void>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function deployCoreAsync(resp: pxtc.CompileResult) {
|
export function deployCoreAsync(resp: pxtc.CompileResult) {
|
||||||
return pxt.editor.deployCoreAsync(resp, process.env["PXT_SERIAL"] ? false : true)
|
return deploy.deployCoreAsync(resp, process.env["PXT_SERIAL"] ? false : true)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
fs.writeFileSync("built/full-" + pxtc.BINARY_UF2, resp.outfiles[pxtc.BINARY_UF2], {
|
fs.writeFileSync("built/full-" + pxtc.BINARY_UF2, resp.outfiles[pxtc.BINARY_UF2], {
|
||||||
encoding: "base64"
|
encoding: "base64"
|
||||||
|
Loading…
Reference in New Issue
Block a user