Comparing version 0.2.0 to 0.3.0
@@ -15,2 +15,3 @@ "use strict"; | ||
const files = require("./files"); | ||
const bump = require("./bump"); | ||
const downloader = require("./downloader"); | ||
@@ -42,2 +43,3 @@ const commander_1 = require("commander"); | ||
.option("-u, --update", "check for web-app updates") | ||
.option("-b, --bump", "bump version in pxt.json and git") | ||
.option("--always-built", "always generate files in built/ folder (and not built/hw-variant/)") | ||
@@ -53,2 +55,6 @@ .option("--debug", "enable debug output from PXT") | ||
prj.service.runSync("(() => { pxt.options.debug = 1 })()"); | ||
if (opts.bump) { | ||
yield bump.bumpAsync(prj); | ||
process.exit(0); | ||
} | ||
prj.service.runSync("(() => { pxt.savedAppTheme().experimentalHw = true; pxt.reloadAppTargetVariant() })()"); | ||
@@ -55,0 +61,0 @@ const hwVariants = prj.service.hwVariants; |
@@ -6,3 +6,4 @@ import * as mkc from "./mkc"; | ||
export declare function mkHomeCache(dir?: string): mkc.Cache; | ||
export declare function writeFilesAsync(built: string, outfiles: pxt.Map<string>, log?: boolean): Promise<void>; | ||
export declare function saveBuiltFilesAsync(dir: string, res: mkc.service.CompileResult, folder?: string): Promise<void>; | ||
export declare function savePxtModulesAsync(dir: string, ws: mkc.Workspace): Promise<void>; |
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.savePxtModulesAsync = exports.saveBuiltFilesAsync = exports.mkHomeCache = exports.readProjectAsync = exports.readPrjFileAsync = exports.findProjectDir = void 0; | ||
exports.savePxtModulesAsync = exports.saveBuiltFilesAsync = exports.writeFilesAsync = exports.mkHomeCache = exports.readProjectAsync = exports.readPrjFileAsync = exports.findProjectDir = void 0; | ||
const fs = require("fs"); | ||
@@ -101,2 +101,3 @@ const path = require("path"); | ||
} | ||
exports.writeFilesAsync = writeFilesAsync; | ||
function saveBuiltFilesAsync(dir, res, folder = "built") { | ||
@@ -103,0 +104,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "makecode", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "MakeCode (PXT) - web-cached build tool", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -40,2 +40,7 @@ # MKC - command line tool for MakeCode editors | ||
## TODO | ||
* [ ] allow updating `shims.d.ts`/`enums.d.ts` | ||
* [x] add `makecode --bump` | ||
## Contributing | ||
@@ -42,0 +47,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
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
101391
29
1521
58
6
4