Comparing version 0.8.3 to 0.9.0
@@ -20,2 +20,3 @@ "use strict"; | ||
const chalk = require("chalk"); | ||
const glob_1 = require("glob"); | ||
function downloadProjectAsync(id) { | ||
@@ -86,3 +87,3 @@ return __awaiter(this, void 0, void 0, function* () { | ||
.parse(process.argv); | ||
const opts = commander_1.program; | ||
const opts = commander_1.program.opts(); | ||
if (opts.noColors) | ||
@@ -169,16 +170,16 @@ chalk.level = 0; | ||
if (success && opts.monoRepo) { | ||
for (const dir of fs.readdirSync(prj.directory)) { | ||
const fulldir = path.join(prj.directory, dir); | ||
if (fs.existsSync(path.join(fulldir, "pxt.json"))) { | ||
info("build subfolder: " + fulldir); | ||
const prj0 = prj.mkChildProject(fulldir); | ||
const cfg = yield prj0.readPxtConfig(); | ||
if (cfg.supportedTargets && cfg.supportedTargets.indexOf(targetId) < 0) { | ||
info(`skipping due to supportedTargets`); | ||
continue; | ||
} | ||
const ok = yield buildOnePrj(opts, prj0); | ||
if (!ok) | ||
success = false; | ||
const dirs = glob_1.glob.sync("**/pxt.json"); | ||
info(`mono-repo: building ${dirs.length} projects`); | ||
for (const fullpxtjson of dirs) { | ||
const fulldir = path.dirname(fullpxtjson); | ||
info(`build ${fulldir}`); | ||
const prj0 = prj.mkChildProject(fulldir); | ||
const cfg = yield prj0.readPxtConfig(); | ||
if (cfg.supportedTargets && cfg.supportedTargets.indexOf(targetId) < 0) { | ||
info(`skipping due to supportedTargets`); | ||
continue; | ||
} | ||
const ok = yield buildOnePrj(opts, prj0); | ||
if (!ok) | ||
success = false; | ||
} | ||
@@ -185,0 +186,0 @@ } |
{ | ||
"name": "makecode", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "MakeCode (PXT) - web-cached build tool", | ||
@@ -41,12 +41,14 @@ "keywords": [ | ||
"@semantic-release/git": "^9.0.0", | ||
"@semantic-release/github": "^7.2.0", | ||
"@semantic-release/npm": "^7.0.9", | ||
"@semantic-release/release-notes-generator": "^9.0.1", | ||
"@types/node": "^12.7.5", | ||
"semantic-release": "^17.3.0", | ||
"typescript": "^4.1.3" | ||
"@semantic-release/github": "^7.2.1", | ||
"@semantic-release/npm": "^7.1.1", | ||
"@semantic-release/release-notes-generator": "^9.0.2", | ||
"@types/node": "^14.14.37", | ||
"semantic-release": "^17.4.2", | ||
"typescript": "^4.2.4" | ||
}, | ||
"dependencies": { | ||
"@types/glob": "^7.1.3", | ||
"chalk": "^4.1.0", | ||
"commander": "^5.1.0" | ||
"commander": "^7.2.0", | ||
"glob": "^7.1.6" | ||
}, | ||
@@ -53,0 +55,0 @@ "release": { |
@@ -11,2 +11,4 @@ # MKC - command line tool for MakeCode editors | ||
Make sure to install [node.js](https://nodejs.org/). | ||
To install globally, run | ||
@@ -13,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
125393
1837
107
4
+ Added@types/glob@^7.1.3
+ Addedglob@^7.1.6
+ Added@types/glob@7.2.0(transitive)
+ Added@types/minimatch@5.1.2(transitive)
+ Added@types/node@22.5.5(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcommander@7.2.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedcommander@5.1.0(transitive)
Updatedcommander@^7.2.0