<commit_before>const semver = require(`semver`)
const { isCI } = require(`ci-info`)

if (semver.satisfies(process.version, `>=8`) && !isCI) {
  module.exports = require(`./ink`).default
} else {
  module.exports = require(`./yurnalist`)
}<commit_msg>fix(gatsby-cli): build successfully without optional dependencies (#14383)<commit_after>const semver = require(`semver`)
const { isCI } = require(`ci-info`)

let inkExists = false
try {
  inkExists = require.resolve(`ink`)
  // eslint-disable-next-line no-empty
} catch (err) {}

if (inkExists && semver.satisfies(process.version, `>=8`) && !isCI) {
  module.exports = require(`./ink`).default
} else {
  module.exports = require(`./yurnalist`)
}
{'fraction_non_alphanumeric': 0.1867816091954023, 'fraction_numerical': 0.010057471264367816, 'mean_word_length': 4.906779661016949, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5390262', 'n_tokens_mistral': 242, 'n_tokens_neox': 233, 'n_words': 47}