UNPKG

@nx-plus/docusaurus

Version:
27 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const lib_1 = require("@docusaurus/core/lib"); const path = require("path"); function runExecutor(options, context) { var _a; return tslib_1.__asyncGenerator(this, arguments, function* runExecutor_1() { const projectRoot = path.join(context.root, context.workspace.projects[(_a = context.projectName) !== null && _a !== void 0 ? _a : ''].root); const port = options.port.toString(); yield tslib_1.__await((0, lib_1.start)(projectRoot, { port, host: options.host, hotOnly: options.hotOnly, open: options.open, })); yield yield tslib_1.__await({ baseUrl: `http://localhost:${port}`, success: true, }); // This Promise intentionally never resolves, leaving the process running // eslint-disable-next-line @typescript-eslint/no-empty-function yield tslib_1.__await(new Promise(() => { })); }); } exports.default = runExecutor; //# sourceMappingURL=executor.js.map