diff --git a/src/lib/prepareOas.ts b/src/lib/prepareOas.ts index 6840c442a..71f768090 100644 --- a/src/lib/prepareOas.ts +++ b/src/lib/prepareOas.ts @@ -1,6 +1,6 @@ import type { OpenAPI } from 'openapi-types'; -import chalk from 'chalk'; +import chalk, { supportsColor } from 'chalk'; import OASNormalize, { getAPIDefinitionType } from 'oas-normalize'; import ora from 'ora'; @@ -151,6 +151,8 @@ export default async function prepareOas( } } + console.log('supportsColor:', supportsColor); + const spinner = ora({ text: `Validating the API definition located at ${specPath}...`, ...oraOptions() }).start(); debug(`about to normalize spec located at ${specPath}`);