From 79d735aa8370b31948a9734f10b1164102074a7c Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 20 Dec 2023 00:27:15 -0500 Subject: [PATCH] Misc --- package.json | 2 +- scripts/setup.ts | 2 +- yarn.lock | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4619cc3..3007ab3 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.15.0", "babel-eslint": "^10.0.0", - "chalk": "^5.3.0", + "chalk": "^4.0.0", "cross-env": "^7.0.3", "cross-var": "^1.1.0", "cypress": "^13.6.1", diff --git a/scripts/setup.ts b/scripts/setup.ts index 661500d..9a0f286 100644 --- a/scripts/setup.ts +++ b/scripts/setup.ts @@ -1,6 +1,7 @@ import fs from 'fs' import os from 'os' import path from 'path' +import chalk from 'chalk' import { JSONSchemaForNPMPackageJsonFiles } from '@schemastore/package' import { getSafePackageName, @@ -13,7 +14,6 @@ import { const { readFile, writeFile } = fs.promises async function main() { - const chalk = await import('chalk').then((d) => d.default) const packageJSON = await readJSON(path.join(__dirname, '..', 'package.json')) const rawPackageName = packageJSON.name // ensure that yarn init has been run diff --git a/yarn.lock b/yarn.lock index a782201..98f835f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4223,7 +4223,7 @@ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^5.0.1, chalk@^5.3.0: +chalk@^5.0.1: version "5.3.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==