fix build issues

This commit is contained in:
konnorrogers
2025-07-16 11:48:46 -04:00
parent 1602dcb3e4
commit 9f09634d7d
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import { replace } from 'esbuild-plugin-replace';
import { mkdir, readFile } from 'fs/promises';
import getPort, { portNumbers } from 'get-port';
import { globby } from 'globby';
import { dirname, join, posix, relative } from 'node:path';
import { dirname, extname, join, posix, relative } from 'node:path';
import process from 'node:process';
import { fileURLToPath } from 'node:url';
import ora from 'ora';

View File

@@ -58,7 +58,7 @@ export async function generateDocs(options = {}) {
return;
}
spinner?.start('Writing the docs');
spinner?.start?.('Writing the docs');
if (isIncremental) {
} else {
@@ -86,11 +86,11 @@ export async function generateDocs(options = {}) {
await copy(getCdnDir(), join(getSiteDir(), 'dist'));
}
spinner?.succeed(`Writing the docs ${chalk.gray(`(${output}`)})`);
spinner?.succeed?.(`Writing the docs ${chalk.gray(`(${output}`)})`);
} catch (error) {
console.error('\n\n' + chalk.red(error) + '\n');
spinner?.fail(chalk.red(`Error while writing the docs.`));
spinner?.fail?.(chalk.red(`Error while writing the docs.`));
if (!isDeveloping) {
process.exit(1);
}