@mintlify/previewing 4.0.491 → 4.0.493
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,6 +36,10 @@ const downloadTargetMint = (logger) => __awaiter(void 0, void 0, void 0, functio
|
|
|
36
36
|
fse.writeFileSync(VERSION_PATH, TARGET_MINT_VERSION);
|
|
37
37
|
});
|
|
38
38
|
const dev = (argv) => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
// Note: We wait for specific text in the logger to be sure the server is ready when we e2e test the cli.
|
|
40
|
+
// If the cli output does not exactly match:
|
|
41
|
+
// "- Preparing local Mintlify instance...\n✔ Local Mintlify instance is ready. Launching your site...\nYour local preview is available at http://localhost:3000\nPress Ctrl+C any time to stop the local preview."
|
|
42
|
+
// the test will fail/require an update.
|
|
39
43
|
const logger = buildLogger('Preparing local Mintlify instance...');
|
|
40
44
|
yield fse.ensureDir(DOT_MINTLIFY);
|
|
41
45
|
const versionString = (yield pathExists(VERSION_PATH))
|
|
@@ -118,6 +122,8 @@ const run = (argv) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
118
122
|
};
|
|
119
123
|
server.listen(currentPort, () => {
|
|
120
124
|
console.log(`${Chalk.green(`Your local preview is available at http://localhost:${port}`)}`);
|
|
125
|
+
// Note: We wait for this exact text to be sure the server is ready in the cli e2e test,
|
|
126
|
+
// if it changes, the test will fail/require an update.
|
|
121
127
|
console.log(`${Chalk.green('Press Ctrl+C any time to stop the local preview.')}`);
|
|
122
128
|
/**
|
|
123
129
|
* We're running into a known bug with the `open` package, where Windows machines error out because process.env.SYSTEMROOT is not set:
|