From 9db4a89f16a04e6009a841400ed40461e7535e4c Mon Sep 17 00:00:00 2001 From: Rolando Bosch Date: Thu, 26 Feb 2026 11:29:38 -0800 Subject: [PATCH] chore: replace chalk with picocolors Replace chalk (136KB + deps) with picocolors (3.8KB, zero deps) for terminal color output. picocolors provides the same core API with significantly smaller footprint. All chained style calls (e.g. chalk.red.bold) are converted to function composition (e.g. pc.red(pc.bold(...))). Addresses ds300/patch-package#499 Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- src/applyPatches.ts | 56 ++++++++++++++++++------------------- src/createIssue.ts | 4 +-- src/detectPackageManager.ts | 12 ++++---- src/index.ts | 38 ++++++++++++------------- src/makePatch.ts | 34 +++++++++++----------- src/makeRegExp.ts | 4 +-- src/patch/read.ts | 6 ++-- src/rebase.ts | 44 ++++++++++++++--------------- src/stateFile.ts | 6 ++-- yarn.lock | 50 ++++----------------------------- 11 files changed, 106 insertions(+), 150 deletions(-) diff --git a/package.json b/package.json index 176b15d6..ebbdf12f 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ }, "dependencies": { "@yarnpkg/lockfile": "^1.1.0", - "chalk": "^4.1.2", + "picocolors": "^1.1.1", "ci-info": "^3.7.0", "cross-spawn": "^7.0.3", "find-yarn-workspace-root": "^2.0.0", diff --git a/src/applyPatches.ts b/src/applyPatches.ts index 1a50d094..871912ee 100644 --- a/src/applyPatches.ts +++ b/src/applyPatches.ts @@ -1,4 +1,4 @@ -import chalk from "chalk" +import pc from "picocolors" import { writeFileSync } from "fs" import { existsSync } from "fs-extra" import { posix } from "path" @@ -45,7 +45,7 @@ function getInstalledPackageVersion({ } let err = - `${chalk.red("Error:")} Patch file found for package ${posix.basename( + `${pc.red("Error:")} Patch file found for package ${posix.basename( pathSpecifier, )}` + ` which is not present at ${relative(".", packageDir)}` @@ -54,7 +54,7 @@ function getInstalledPackageVersion({ If this package is a dev dependency, rename the patch file to - ${chalk.bold(patchFilename.replace(".patch", ".dev.patch"))} + ${pc.bold(patchFilename.replace(".patch", ".dev.patch"))} ` } throw new PatchApplicationError(err) @@ -65,7 +65,7 @@ function getInstalledPackageVersion({ const result = semver.valid(version) if (result === null) { throw new PatchApplicationError( - `${chalk.red( + `${pc.red( "Error:", )} Version string '${version}' cannot be parsed from ${join( packageDir, @@ -85,9 +85,9 @@ function logPatchApplication(patchDetails: PatchedPackageDetails) { })` : "" console.log( - `${chalk.bold(patchDetails.pathSpecifier)}@${ + `${pc.bold(patchDetails.pathSpecifier)}@${ patchDetails.version - }${sequenceString} ${chalk.green("✔")}`, + }${sequenceString} ${pc.green("✔")}`, ) } @@ -110,7 +110,7 @@ export function applyPatchesForApp({ const groupedPatches = getGroupedPatches(patchesDirectory) if (groupedPatches.numPatchFiles === 0) { - console.log(chalk.blueBright("No patch files found")) + console.log(pc.blueBright("No patch files found")) return } @@ -140,10 +140,10 @@ export function applyPatchesForApp({ const problemsSummary = [] if (warnings.length) { - problemsSummary.push(chalk.yellow(`${warnings.length} warning(s)`)) + problemsSummary.push(pc.yellow(`${warnings.length} warning(s)`)) } if (errors.length) { - problemsSummary.push(chalk.red(`${errors.length} error(s)`)) + problemsSummary.push(pc.red(`${errors.length} error(s)`)) } if (problemsSummary.length) { @@ -201,8 +201,8 @@ export function applyPatchesForPackage({ appliedPatches.push(unappliedPatches.shift()!) } else { console.log( - chalk.red("Error:"), - `The patches for ${chalk.bold(pathSpecifier)} have changed.`, + pc.red("Error:"), + `The patches for ${pc.bold(pathSpecifier)} have changed.`, `You should reinstall your node_modules folder to make sure the package is up to date`, ) process.exit(1) @@ -249,9 +249,9 @@ export function applyPatchesForPackage({ if (!installedPackageVersion) { // it's ok we're in production mode and this is a dev only package console.log( - `Skipping dev-only ${chalk.bold( - pathSpecifier, - )}@${version} ${chalk.blue("✔")}`, + `Skipping dev-only ${pc.bold(pathSpecifier)}@${version} ${pc.blue( + "✔", + )}`, ) continue } @@ -429,7 +429,7 @@ export function applyPatch({ if (errors?.length) { console.log( "Saving errors to", - chalk.cyan.bold("./patch-package-errors.log"), + pc.cyan(pc.bold("./patch-package-errors.log")), ) writeFileSync("patch-package-errors.log", errors.join("\n\n")) process.exit(0) @@ -464,18 +464,18 @@ function createVersionMismatchWarning({ path: string }) { return ` -${chalk.yellow("Warning:")} patch-package detected a patch file version mismatch +${pc.yellow("Warning:")} patch-package detected a patch file version mismatch Don't worry! This is probably fine. The patch was still applied successfully. Here's the deets: Patch file created for - ${packageName}@${chalk.bold(originalVersion)} + ${packageName}@${pc.bold(originalVersion)} applied to - ${packageName}@${chalk.bold(actualVersion)} + ${packageName}@${pc.bold(actualVersion)} At path @@ -485,7 +485,7 @@ ${chalk.yellow("Warning:")} patch-package detected a patch file version mismatch breakage even though the patch was applied successfully. Make sure the package still behaves like you expect (you wrote tests, right?) and then run - ${chalk.bold(`patch-package ${pathSpecifier}`)} + ${pc.bold(`patch-package ${pathSpecifier}`)} to update the version in the patch file name and make this warning go away. ` @@ -503,8 +503,8 @@ function createBrokenPatchFileError({ pathSpecifier: string }) { return ` -${chalk.red.bold("**ERROR**")} ${chalk.red( - `Failed to apply patch for package ${chalk.bold(packageName)} at path`, +${pc.red(pc.bold("**ERROR**"))} ${pc.red( + `Failed to apply patch for package ${pc.bold(packageName)} at path`, )} ${path} @@ -543,13 +543,13 @@ function createPatchApplicationFailureError({ pathSpecifier: string }) { return ` -${chalk.red.bold("**ERROR**")} ${chalk.red( - `Failed to apply patch for package ${chalk.bold(packageName)} at path`, +${pc.red(pc.bold("**ERROR**"))} ${pc.red( + `Failed to apply patch for package ${pc.bold(packageName)} at path`, )} ${path} - This error was caused because ${chalk.bold(packageName)} has changed since you + This error was caused because ${pc.bold(packageName)} has changed since you made the patch file for it. This introduced conflicts with your patch, just like a merge conflict in Git when separate incompatible changes are made to the same piece of code. @@ -568,8 +568,8 @@ ${chalk.red.bold("**ERROR**")} ${chalk.red( Info: Patch file: patches/${patchFilename} - Patch was made for version: ${chalk.green.bold(originalVersion)} - Installed version: ${chalk.red.bold(actualVersion)} + Patch was made for version: ${pc.green(pc.bold(originalVersion))} + Installed version: ${pc.red(pc.bold(actualVersion))} ` } @@ -581,8 +581,8 @@ function createUnexpectedError({ error: Error }) { return ` -${chalk.red.bold("**ERROR**")} ${chalk.red( - `Failed to apply patch file ${chalk.bold(filename)}`, +${pc.red(pc.bold("**ERROR**"))} ${pc.red( + `Failed to apply patch file ${pc.bold(filename)}`, )} ${error.stack} diff --git a/src/createIssue.ts b/src/createIssue.ts index 1522e563..1de92af1 100644 --- a/src/createIssue.ts +++ b/src/createIssue.ts @@ -1,4 +1,4 @@ -import chalk from "chalk" +import pc from "picocolors" import open from "open" import { stringify } from "querystring" import { PackageManager } from "./detectPackageManager" @@ -105,7 +105,7 @@ export function maybePrintIssueCreationPrompt( packageManager: PackageManager, ) { if (vcs) { - console.log(`💡 ${chalk.bold(packageDetails.name)} is on ${ + console.log(`💡 ${pc.bold(packageDetails.name)} is on ${ vcs.provider }! To draft an issue based on your patch run diff --git a/src/detectPackageManager.ts b/src/detectPackageManager.ts index c7bb7559..307a68b1 100644 --- a/src/detectPackageManager.ts +++ b/src/detectPackageManager.ts @@ -1,6 +1,6 @@ import fs from "fs-extra" import { join } from "./path" -import chalk from "chalk" +import pc from "picocolors" import process from "process" import findWorkspaceRoot from "find-yarn-workspace-root" @@ -8,7 +8,7 @@ export type PackageManager = "yarn" | "npm" | "npm-shrinkwrap" function printNoYarnLockfileError() { console.log(` -${chalk.red.bold("**ERROR**")} ${chalk.red( +${pc.red(pc.bold("**ERROR**"))} ${pc.red( `The --use-yarn option was specified but there is no yarn.lock file`, )} `) @@ -16,7 +16,7 @@ ${chalk.red.bold("**ERROR**")} ${chalk.red( function printNoLockfilesError() { console.log(` -${chalk.red.bold("**ERROR**")} ${chalk.red( +${pc.red(pc.bold("**ERROR**"))} ${pc.red( `No package-lock.json, npm-shrinkwrap.json, or yarn.lock file. You must use either npm@>=5, yarn, or npm-shrinkwrap to manage this project's @@ -27,10 +27,8 @@ dependencies.`, function printSelectingDefaultMessage() { console.info( - `${chalk.bold( - "patch-package", - )}: you have both yarn.lock and package-lock.json -Defaulting to using ${chalk.bold("npm")} + `${pc.bold("patch-package")}: you have both yarn.lock and package-lock.json +Defaulting to using ${pc.bold("npm")} You can override this setting by passing --use-yarn or deleting package-lock.json if you don't need it `, diff --git a/src/index.ts b/src/index.ts index 8ee449a9..b48cf4af 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import chalk from "chalk" +import pc from "picocolors" import process from "process" import minimist from "minimist" @@ -32,7 +32,7 @@ const argv = minimist(process.argv.slice(2), { const packageNames = argv._ console.log( - chalk.bold("patch-package"), + pc.bold("patch-package"), // tslint:disable-next-line:no-var-requires require(join(__dirname, "../package.json")).version, ) @@ -49,7 +49,7 @@ if (argv.version || argv.v) { if ("rebase" in argv) { if (!argv.rebase) { console.log( - chalk.red( + pc.red( "You must specify a patch file name or number when rebasing patches", ), ) @@ -57,7 +57,7 @@ if (argv.version || argv.v) { } if (packageNames.length !== 1) { console.log( - chalk.red( + pc.red( "You must specify exactly one package name when rebasing patches", ), ) @@ -133,9 +133,9 @@ Usage: 1. Patching packages ==================== - ${chalk.bold("patch-package")} + ${pc.bold("patch-package")} - Without arguments, the ${chalk.bold( + Without arguments, the ${pc.bold( "patch-package", )} command will attempt to find and apply patch files to your project. It looks for files named like @@ -144,11 +144,11 @@ Usage: Options: - ${chalk.bold("--patch-dir ")} + ${pc.bold("--patch-dir ")} Specify the name for the directory in which the patch files are located. - ${chalk.bold("--error-on-fail")} + ${pc.bold("--error-on-fail")} Forces patch-package to exit with code 1 after failing. @@ -157,17 +157,17 @@ Usage: yarn.lock and package.json might get out of sync with node_modules, which can be very confusing. - --error-on-fail is ${chalk.bold("switched on")} by default on CI. + --error-on-fail is ${pc.bold("switched on")} by default on CI. See https://github.com/ds300/patch-package/issues/86 for background. - ${chalk.bold("--error-on-warn")} + ${pc.bold("--error-on-warn")} Forces patch-package to exit with code 1 after warning. See https://github.com/ds300/patch-package/issues/314 for background. - ${chalk.bold("--reverse")} + ${pc.bold("--reverse")} Un-applies all patches. @@ -182,45 +182,43 @@ Usage: 2. Creating patch files ======================= - ${chalk.bold("patch-package")} ${chalk.italic( - "[ ]", - )} + ${pc.bold("patch-package")} ${pc.italic("[ ]")} When given package names as arguments, patch-package will create patch files based on any changes you've made to the versions installed by yarn/npm. Options: - ${chalk.bold("--create-issue")} + ${pc.bold("--create-issue")} For packages whose source is hosted on GitHub this option opens a web browser with a draft issue based on your diff. - ${chalk.bold("--use-yarn")} + ${pc.bold("--use-yarn")} By default, patch-package checks whether you use npm or yarn based on which lockfile you have. If you have both, it uses npm by default. Set this option to override that default and always use yarn. - ${chalk.bold("--exclude ")} + ${pc.bold("--exclude ")} Ignore paths matching the regexp when creating patch files. Paths are relative to the root dir of the package to be patched. Default: 'package\\.json$' - ${chalk.bold("--include ")} + ${pc.bold("--include ")} Only consider paths matching the regexp when creating patch files. Paths are relative to the root dir of the package to be patched. Default '.*' - ${chalk.bold("--case-sensitive-path-filtering")} + ${pc.bold("--case-sensitive-path-filtering")} Make regexps used in --include or --exclude filters case-sensitive. - ${chalk.bold("--patch-dir")} + ${pc.bold("--patch-dir")} Specify the name for the directory in which to put the patch files. `) diff --git a/src/makePatch.ts b/src/makePatch.ts index 7e008eb3..3adf1b6f 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -1,4 +1,4 @@ -import chalk from "chalk" +import pc from "picocolors" import console from "console" import { renameSync } from "fs" import { @@ -165,7 +165,7 @@ export function makePatch({ try { const patchesDir = resolve(join(appPath, patchDir)) - console.info(chalk.grey("•"), "Creating temporary folder") + console.info(pc.gray("•"), "Creating temporary folder") // make a blank package.json mkdirpSync(tmpRepoNpmRoot) @@ -202,7 +202,7 @@ export function makePatch({ if (packageManager === "yarn") { console.info( - chalk.grey("•"), + pc.gray("•"), `Installing ${packageDetails.name}@${packageVersion} with yarn`, ) try { @@ -225,7 +225,7 @@ export function makePatch({ } } else { console.info( - chalk.grey("•"), + pc.gray("•"), `Installing ${packageDetails.name}@${packageVersion} with npm`, ) try { @@ -261,7 +261,7 @@ export function makePatch({ removeSync(join(tmpRepoPackagePath, STATE_FILE_NAME)) // commit the package - console.info(chalk.grey("•"), "Diffing your files with clean files") + console.info(pc.gray("•"), "Diffing your files with clean files") writeFileSync(join(tmpRepo.name, ".gitignore"), "!/node_modules\n\n") git("init") git("config", "--local", "user.name", "patch-package") @@ -342,12 +342,12 @@ export function makePatch({ (e as Error).message.includes("Unexpected file mode string: 120000") ) { console.log(` -⛔️ ${chalk.red.bold("ERROR")} +⛔️ ${pc.red(pc.bold("ERROR"))} Your changes involve creating symlinks. patch-package does not yet support symlinks. - ️Please use ${chalk.bold("--include")} and/or ${chalk.bold( + ️Please use ${pc.bold("--include")} and/or ${pc.bold( "--exclude", )} to narrow the scope of your patch if this was unintentional. @@ -364,7 +364,7 @@ export function makePatch({ ), ) console.log(` -⛔️ ${chalk.red.bold("ERROR")} +⛔️ ${pc.red(pc.bold("ERROR"))} patch-package was unable to read the patch-file made by git. This should not happen. @@ -449,9 +449,9 @@ export function makePatch({ }) console.log( "Renaming", - chalk.bold(p.patchFilename), + pc.bold(p.patchFilename), "to", - chalk.bold(newName), + pc.bold(newName), ) const oldPath = join(appPath, patchDir, p.patchFilename) const newPath = join(appPath, patchDir, newName) @@ -462,7 +462,7 @@ export function makePatch({ writeFileSync(patchPath, diffResult.stdout) console.log( - `${chalk.green("✔")} Created file ${join(patchDir, patchFileName)}\n`, + `${pc.green("✔")} Created file ${join(patchDir, patchFileName)}\n`, ) const prevState: PatchState[] = patchesToApplyBeforeDiffing.map( @@ -511,7 +511,7 @@ export function makePatch({ }) break } else { - console.log(` ${chalk.green("✔")} ${patch.patchFilename}`) + console.log(` ${pc.green("✔")} ${patch.patchFilename}`) nextState.push({ patchFilename: patch.patchFilename, didApply: true, @@ -583,23 +583,23 @@ export function logPatchSequenceError({ patchDetails: PatchedPackageDetails }) { console.log(` -${chalk.red.bold("⛔ ERROR")} +${pc.red(pc.bold("⛔ ERROR"))} -Failed to apply patch file ${chalk.bold(patchDetails.patchFilename)}. +Failed to apply patch file ${pc.bold(patchDetails.patchFilename)}. If this patch file is no longer useful, delete it and run - ${chalk.bold(`patch-package`)} + ${pc.bold(`patch-package`)} To partially apply the patch (if possible) and output a log of errors to fix, run - ${chalk.bold(`patch-package --partial`)} + ${pc.bold(`patch-package --partial`)} After which you should make any required changes inside ${ patchDetails.path }, and finally run - ${chalk.bold(`patch-package ${patchDetails.pathSpecifier}`)} + ${pc.bold(`patch-package ${patchDetails.pathSpecifier}`)} to update the patch file. `) diff --git a/src/makeRegExp.ts b/src/makeRegExp.ts index a64825ff..e5621434 100644 --- a/src/makeRegExp.ts +++ b/src/makeRegExp.ts @@ -1,4 +1,4 @@ -import chalk from "chalk" +import pc from "picocolors" export const makeRegExp = ( reString: string, @@ -12,7 +12,7 @@ export const makeRegExp = ( try { return new RegExp(reString, caseSensitive ? "" : "i") } catch (_) { - console.log(`${chalk.red.bold("***ERROR***")} + console.log(`${pc.red(pc.bold("***ERROR***"))} Invalid format for option --${name} Unable to convert the string ${JSON.stringify( diff --git a/src/patch/read.ts b/src/patch/read.ts index 3d8380ac..9f7f3683 100644 --- a/src/patch/read.ts +++ b/src/patch/read.ts @@ -1,4 +1,4 @@ -import chalk from "chalk" +import pc from "picocolors" import { readFileSync } from "fs-extra" import { relative, resolve } from "../path" import { normalize } from "path" @@ -41,8 +41,8 @@ export function readPatch({ } console.log(` -${chalk.red.bold("**ERROR**")} ${chalk.red( - `Failed to apply patch for package ${chalk.bold( +${pc.red(pc.bold("**ERROR**"))} ${pc.red( + `Failed to apply patch for package ${pc.bold( patchDetails.humanReadablePathSpecifier, )}`, )} diff --git a/src/rebase.ts b/src/rebase.ts index d8f0ba9c..c8b466d9 100644 --- a/src/rebase.ts +++ b/src/rebase.ts @@ -1,4 +1,4 @@ -import chalk from "chalk" +import pc from "picocolors" import { join, resolve } from "path" import { applyPatch } from "./applyPatches" import { hashFile } from "./hash" @@ -25,7 +25,7 @@ export function rebase({ const groupedPatches = getGroupedPatches(patchesDirectory) if (groupedPatches.numPatchFiles === 0) { - console.log(chalk.blueBright("No patch files found")) + console.log(pc.blueBright("No patch files found")) process.exit(1) } @@ -33,7 +33,7 @@ export function rebase({ groupedPatches.pathSpecifierToPatchFiles[packagePathSpecifier] if (!packagePatches) { console.log( - chalk.blueBright("No patch files found for package"), + pc.blueBright("No patch files found for package"), packagePathSpecifier, ) process.exit(1) @@ -43,18 +43,18 @@ export function rebase({ if (!state) { console.log( - chalk.blueBright("No patch state found"), + pc.blueBright("No patch state found"), "Did you forget to run", - chalk.bold("patch-package"), + pc.bold("patch-package"), "(without arguments) first?", ) process.exit(1) } if (state.isRebasing) { console.log( - chalk.blueBright("Already rebasing"), + pc.blueBright("Already rebasing"), "Make changes to the files in", - chalk.bold(packagePatches[0].path), + pc.bold(packagePatches[0].path), "and then run `patch-package", packagePathSpecifier, "--continue` to", @@ -71,7 +71,7 @@ export function rebase({ } if (state.patches.length !== packagePatches.length) { console.log( - chalk.blueBright("Some patches have not been applied."), + pc.blueBright("Some patches have not been applied."), "Reinstall node_modules and try again.", ) } @@ -91,11 +91,11 @@ export function rebase({ patches: [], }) console.log(` -Make any changes you need inside ${chalk.bold(packagePatches[0].path)} +Make any changes you need inside ${pc.bold(packagePatches[0].path)} When you are done, run - ${chalk.bold( + ${pc.bold( `patch-package ${packagePathSpecifier} --append 'MyChangeDescription'`, )} @@ -128,8 +128,8 @@ to insert a new patch file. if (!target) { console.log( - chalk.red("Could not find target patch file"), - chalk.bold(targetPatch), + pc.red("Could not find target patch file"), + pc.bold(targetPatch), ) console.log() console.log("The list of available patch files is:") @@ -146,8 +146,8 @@ to insert a new patch file. ) if (!prevApplication) { console.log( - chalk.red("Could not find previous application of patch file"), - chalk.bold(target.patchFilename), + pc.red("Could not find previous application of patch file"), + pc.bold(target.patchFilename), ) console.log() console.log("You should reinstall node_modules and try again.") @@ -173,19 +173,19 @@ to insert a new patch file. }) console.log(` -Make any changes you need inside ${chalk.bold(packagePatches[0].path)} +Make any changes you need inside ${pc.bold(packagePatches[0].path)} When you are done, do one of the following: - To update ${chalk.bold(packagePatches[targetIdx].patchFilename)} run + To update ${pc.bold(packagePatches[targetIdx].patchFilename)} run - ${chalk.bold(`patch-package ${packagePathSpecifier}`)} + ${pc.bold(`patch-package ${packagePathSpecifier}`)} - To create a new patch file after ${chalk.bold( + To create a new patch file after ${pc.bold( packagePatches[targetIdx].patchFilename, )} run - ${chalk.bold( + ${pc.bold( `patch-package ${packagePathSpecifier} --append 'MyChangeDescription'`, )} @@ -213,12 +213,12 @@ function unApplyPatches({ }) ) { console.log( - chalk.red("Failed to un-apply patch file"), - chalk.bold(patch.patchFilename), + pc.red("Failed to un-apply patch file"), + pc.bold(patch.patchFilename), "Try completely reinstalling node_modules.", ) process.exit(1) } - console.log(chalk.cyan.bold("Un-applied"), patch.patchFilename) + console.log(pc.cyan(pc.bold("Un-applied")), patch.patchFilename) } } diff --git a/src/stateFile.ts b/src/stateFile.ts index 7aea576d..1251326b 100644 --- a/src/stateFile.ts +++ b/src/stateFile.ts @@ -3,7 +3,7 @@ import { join } from "path" import { PackageDetails } from "./PackageDetails" import stringify from "json-stable-stringify" import { hashFile } from "./hash" -import chalk from "chalk" +import pc from "picocolors" export interface PatchState { patchFilename: string patchContentHash: string @@ -89,7 +89,7 @@ export function verifyAppliedPatches({ const fullPatchPath = join(patchesDirectory, patch.patchFilename) if (!existsSync(fullPatchPath)) { console.log( - chalk.blueBright("Expected patch file"), + pc.blueBright("Expected patch file"), fullPatchPath, "to exist but it is missing. Try removing and reinstalling node_modules first.", ) @@ -97,7 +97,7 @@ export function verifyAppliedPatches({ } if (patch.patchContentHash !== hashFile(fullPatchPath)) { console.log( - chalk.blueBright("Patch file"), + pc.blueBright("Patch file"), fullPatchPath, "has changed since it was applied. Try removing and reinstalling node_modules first.", ) diff --git a/yarn.lock b/yarn.lock index fa92afe3..c440c695 100644 --- a/yarn.lock +++ b/yarn.lock @@ -327,11 +327,6 @@ dependencies: "@babel/types" "^7.3.0" -"@types/color-name@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" - integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== - "@types/cross-spawn@^6.0.0": version "6.0.2" resolved "https://registry.yarnpkg.com/@types/cross-spawn/-/cross-spawn-6.0.2.tgz#168309de311cd30a2b8ae720de6475c2fbf33ac7" @@ -496,14 +491,6 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" -ansi-styles@^4.1.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" - integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== - dependencies: - "@types/color-name" "^1.1.1" - color-convert "^2.0.1" - any-observable@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/any-observable/-/any-observable-0.3.0.tgz#af933475e5806a67d0d7df090dd5e8bef65d119b" @@ -847,14 +834,6 @@ chalk@^2.0.1: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - ci-info@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" @@ -919,22 +898,10 @@ color-convert@^1.9.0: dependencies: color-name "^1.1.1" -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - color-name@^1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.2.tgz#5c8ab72b64bd2215d617ae9559ebb148475cf98d" -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - combined-stream@^1.0.6, combined-stream@~1.0.6: version "1.0.7" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.7.tgz#2d1d24317afb8abe95d6d2c0b07b57813539d828" @@ -1580,11 +1547,6 @@ has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - has-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" @@ -3186,6 +3148,11 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= +picocolors@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== + picomatch@^2.0.5: version "2.2.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" @@ -3877,13 +3844,6 @@ supports-color@^6.0.0, supports-color@^6.1.0: dependencies: has-flag "^3.0.0" -supports-color@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" - integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== - dependencies: - has-flag "^4.0.0" - symbol-observable@^1.1.0: version "1.2.0" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"