Comparing version 0.28.3 to 0.28.4
@@ -100,3 +100,6 @@ "use strict"; | ||
} | ||
let debugMode = false; | ||
function applyGlobalOptions(opts) { | ||
if (opts.debug) | ||
debugMode = true; | ||
if (opts.noColors) | ||
@@ -473,3 +476,17 @@ chalk.level = 0; | ||
prj.mainPkg = null; | ||
yield prj.maybeWritePxtModulesAsync(); | ||
if (opts.monoRepo) { | ||
const dirs = bump.monoRepoConfigs("."); | ||
info(`mono-repo: building ${dirs.length} projects`); | ||
for (const fullpxtjson of dirs) { | ||
if (fullpxtjson.startsWith("pxt_modules")) | ||
continue; | ||
const fulldir = path.dirname(fullpxtjson); | ||
info(`install ${fulldir}`); | ||
const prj0 = prj.mkChildProject(fulldir); | ||
yield prj0.maybeWritePxtModulesAsync(); | ||
} | ||
} | ||
else { | ||
yield prj.maybeWritePxtModulesAsync(); | ||
} | ||
}); | ||
@@ -506,2 +523,3 @@ } | ||
targetWebsite: target.website, | ||
links: {}, | ||
}, null, 4), { encoding: "utf-8" }); | ||
@@ -753,3 +771,6 @@ } | ||
error: error, | ||
debug: s => console.log(chalk.gray(s)), | ||
debug: s => { | ||
if (debugMode) | ||
console.debug(chalk.gray(s)); | ||
}, | ||
}); | ||
@@ -796,2 +817,3 @@ commander_1.program.version(require("../package.json").version); | ||
.description("downloads the dependencies") | ||
.option("-r, --mono-repo", "also install in all subfolders with 'pxt.json' in them") | ||
.option("--symlink-pxt-modules", "symlink files in pxt_modules/* for auto-completion") | ||
@@ -798,0 +820,0 @@ .option("--link-pxt-modules", "write pxt_modules/* adhering to 'links' field in mkc.json (for pxt cli build)") |
@@ -128,5 +128,8 @@ "use strict"; | ||
const v = files[k]; | ||
if (typeof v == "string") | ||
if (typeof v == "string") { | ||
mkc.debug(` write ${k}`); | ||
yield writeAsync(k, v); | ||
} | ||
else { | ||
mkc.debug(` link ${k}`); | ||
try { | ||
@@ -133,0 +136,0 @@ fs.unlinkSync(k); |
{ | ||
"name": "makecode", | ||
"version": "0.28.3", | ||
"version": "0.28.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
211314
3217