From 6b948717ea6d1620442978f23fcb4b2caaf1936e Mon Sep 17 00:00:00 2001 From: Ben Surgison Date: Wed, 10 May 2023 12:04:17 +0100 Subject: [PATCH] Replace chalk with ansi-colors as it is installed as a dependency --- CHANGELOG.md | 2 ++ lib/usage-data.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ab184578..cd9688774d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ ### Fixes +- [#2163: Replace chalk with ansi-colors as it is installed as a dependency](https://github.com/alphagov/govuk-prototype-kit/pull/2163) + - [#2150: Prevent CSURF deprecated warning](https://github.com/alphagov/govuk-prototype-kit/pull/2150) - [#2130: Create our own file store functionality in place of the session-file-store package](https://github.com/alphagov/govuk-prototype-kit/pull/2130) diff --git a/lib/usage-data.js b/lib/usage-data.js index fad5bb9068..84f63cead9 100644 --- a/lib/usage-data.js +++ b/lib/usage-data.js @@ -8,14 +8,14 @@ const path = require('path') const inquirer = require('inquirer') const universalAnalytics = require('universal-analytics') const { v4: uuidv4 } = require('uuid') -const chalk = require('chalk') +const ansiColors = require('ansi-colors') // local dependencies const packageJson = require('../package.json') const { projectDir } = require('./utils/paths') const usageDataFilePath = path.join(projectDir, 'usage-data-config.json') -const headline = chalk.underline('Help us improve the GOV.UK Prototype Kit') +const headline = ansiColors.underline('Help us improve the GOV.UK Prototype Kit') const USAGE_DATA_PROMPT = ` ${headline}