UNPKG

makecode-core

Version:

MakeCode (PXT) - web-cached build tool

16 lines (15 loc) 1.14 kB
import * as mkc from "./mkc"; export declare function findParentDirWithAsync(base: string, filename: string): Promise<string>; export declare function findProjectDirAsync(): Promise<string>; export declare function relativePath(currdir: string, target: string): string; export declare function fileExistsAsync(name: string): Promise<boolean>; export declare function readPrjFileAsync(dir: string, filename: string): Promise<string>; export declare function readProjectAsync(dir: string): Promise<pxt.Map<string>>; export declare function mkHomeCacheAsync(dir?: string): Promise<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, files: pxt.Map<string | { symlink: string; }>): Promise<void>; export declare function monoRepoConfigsAsync(folder: string, includingSelf?: boolean): Promise<string[]>; export declare function collectCurrentVersionAsync(configs: string[]): Promise<string>;