Comparing version 0.2.1 to 0.2.2
@@ -17,5 +17,9 @@ import path from 'node:path'; | ||
spinner = ora('Generating report...').start(); | ||
// Force color output for HTML report | ||
const oldLevel = chalk.level; | ||
chalk.level = 1; | ||
const promises = files.map(async (file) => reportFile(file, options)); | ||
const results = await Promise.all(promises); | ||
await generateHtmlReport(reportOutputFile, results); | ||
chalk.level = oldLevel; | ||
spinner.succeed(`Generated report to ${chalk.cyan(reportOutputFile)}`); | ||
@@ -32,2 +36,3 @@ } | ||
const ansiToHtml = new AnsiToHtml({ | ||
fg: '#000', | ||
colors: { | ||
@@ -34,0 +39,0 @@ // eslint-disable-next-line @typescript-eslint/naming-convention |
{ | ||
"name": "a11y-ai", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Experimental tool to automatically detect accessibility issues in web pages and provide suggestions for fixing them", | ||
@@ -17,2 +17,3 @@ "type": "module", | ||
"scripts": { | ||
"start": "node ./bin/a11y-ai.js", | ||
"build": "npm run clean -s && tsc", | ||
@@ -19,0 +20,0 @@ "build:watch": "tsc -w --sourceMap", |
17741
364