From f6939c5a2239cd02b4c2ff61f46319663239acfe Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Wed, 13 Sep 2023 07:35:41 -0500 Subject: [PATCH] chore(temp): see if colors are supported in GHA --- src/lib/prepareOas.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}`);