Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

makecode

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

makecode - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

built/bump.d.ts

6

built/cli.js

@@ -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;

1

built/files.d.ts

@@ -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>;

3

built/files.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc