Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace chalk with ansi-colors as it is installed as a dependency #2163

Merged
merged 1 commit into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions lib/usage-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down