UNPKG

bedrock-development

Version:

APIs for creating and editing files related to Minecraft Bedrock development.

24 lines (23 loc) 1.32 kB
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; import { CommandMap } from "./command_map.js"; export * from './base.js'; export * from './new/index.js'; export * from './entity/index.js'; export * from './world/index.js'; export * from './format/index.js'; export * from './project/index.js'; export function runProgram() { var _a, _b; return __awaiter(this, void 0, void 0, function* () { yield new Promise(resolve => setTimeout(resolve, 2)); // Wait to parse command until command map copies finished (_b = (_a = CommandMap.getCommandEntry("root")) === null || _a === void 0 ? void 0 : _a.command) === null || _b === void 0 ? void 0 : _b.parse(); }); }