@mintlify/previewing 4.0.1474 → 4.0.1475

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.
@@ -1,3 +1,3 @@
1
1
  import { ArgumentsCamelCase } from 'yargs';
2
- declare const validateBuild: (argv: ArgumentsCamelCase) => Promise<never>;
2
+ declare const validateBuild: (argv: ArgumentsCamelCase, onSuccess?: () => Promise<void>) => Promise<never>;
3
3
  export default validateBuild;
@@ -7,7 +7,7 @@ import { addLog, clearLogs } from '../logging-state.js';
7
7
  import { ErrorLog, SpinnerLog, SuccessLog } from '../logs.js';
8
8
  import { timeDev, timeDevSync } from './dev-timing.js';
9
9
  import { silentUpdateClient } from './update.js';
10
- const validateBuild = async (argv) => {
10
+ const validateBuild = async (argv, onSuccess) => {
11
11
  configureSharedPreviewPath();
12
12
  const hasInternet = await timeDev('check internet', () => isOnline());
13
13
  const localSchema = argv['local-schema'];
@@ -57,6 +57,7 @@ const validateBuild = async (argv) => {
57
57
  }));
58
58
  clearLogs();
59
59
  addLog(_jsx(SuccessLog, { message: "build validation passed" }));
60
+ await onSuccess?.();
60
61
  await new Promise((resolve) => setTimeout(resolve, 50));
61
62
  process.exit(0);
62
63
  }