Comparing version 0.0.3 to 0.0.4
@@ -40,2 +40,3 @@ "use strict"; | ||
.option("-i, --init-mkc", "initialize mkc.json") | ||
.option("-u, --update", "check for web-app updates") | ||
.option("--always-built", "always generate files in built/ folder (and not built/hw-variant/)") | ||
@@ -47,3 +48,3 @@ .parse(process.argv); | ||
const prj = new mkc.Project(files.findProjectDir()); | ||
yield prj.loadEditorAsync(); | ||
yield prj.loadEditorAsync(!!opts.update); | ||
prj.service.runSync("(() => { pxt.savedAppTheme().experimentalHw = true; pxt.reloadAppTargetVariant() })()"); | ||
@@ -50,0 +51,0 @@ const hwVariants = prj.service.runSync("pxt.getHwVariants()"); |
@@ -93,3 +93,6 @@ "use strict"; | ||
console.log(`write ${built}/${fn}`); | ||
yield writeAsync(path.join(built, fn), outfiles[fn]); | ||
if (/\.(uf2|pxt64|elf)$/.test(fn)) | ||
yield writeAsync(path.join(built, fn), outfiles[fn], "base64"); | ||
else | ||
yield writeAsync(path.join(built, fn), outfiles[fn], "utf8"); | ||
} | ||
@@ -96,0 +99,0 @@ }); |
{ | ||
"name": "makecode", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "MakeCode (PXT) - web-cached build tool", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87984
1334