File tree Expand file tree Collapse file tree 13 files changed +20
-17
lines changed Expand file tree Collapse file tree 13 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @unts/patch-package " : patch
3+ ---
4+
5+ chore: migrate ` chalk ` to ` picocolors ` and ` NO_COLOR ` env
Original file line number Diff line number Diff line change 8181 "dependencies" : {
8282 "@nolyfill/json-stable-stringify" : " ^1.0.30" ,
8383 "@yarnpkg/lockfile" : " ^1.1.0" ,
84- "chalk" : " ^4.1.2" ,
8584 "ci-info" : " ^3.7.0" ,
8685 "cross-spawn" : " ^7.0.3" ,
8786 "find-yarn-workspace-root" : " ^2.0.0" ,
8887 "fs-extra" : " ^10.0.0" ,
8988 "klaw-sync" : " ^6.0.0" ,
9089 "minimist" : " ^1.2.6" ,
9190 "open" : " ^7.4.2" ,
91+ "picocolors" : " ^1.1.1" ,
9292 "semver" : " ^7.5.3" ,
9393 "slash" : " ^3.0.0" ,
9494 "tmp" : " ^0.0.33" ,
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e
33
4- export CI=true
5-
64yarn clean
75yarn build
86version=$( node -e ' console.log(require("./package.json").version)' )
97yarn version --new-version 0.0.0 --no-git-tag-version --no-commit-hooks
108yarn pack --filename patch-package.test.$( date +%s) .tgz
119yarn version --new-version $version --no-git-tag-version --no-commit-hooks
12- yarn jest " $@ "
10+ NO_COLOR=1 yarn jest " $@ "
Original file line number Diff line number Diff line change 1- import colors from "chalk"
21import { existsSync , writeFileSync } from "fs-extra"
32import { posix } from "path"
3+ import colors from "picocolors"
44import semver from "semver"
55import { hashFile } from "./hash"
66import { logPatchSequenceError } from "./makePatch"
Original file line number Diff line number Diff line change 1- import colors from "chalk"
21import open from "open"
2+ import colors from "picocolors"
33import { stringify } from "querystring"
44import { PackageManager } from "./detectPackageManager"
55import { PackageDetails } from "./PackageDetails"
Original file line number Diff line number Diff line change 1- import colors from "chalk"
21import findWorkspaceRoot from "find-yarn-workspace-root"
32import fs from "fs-extra"
3+ import colors from "picocolors"
44import { join } from "./path"
55
66export type PackageManager = "yarn" | "npm" | "npm-shrinkwrap"
Original file line number Diff line number Diff line change 1- import colors from "chalk"
21import { isCI } from "ci-info"
32import minimist from "minimist"
43import { normalize , sep } from "path"
4+ import colors from "picocolors"
55import slash from "slash"
66import { applyPatchesForApp } from "./applyPatches"
77import { detectPackageManager } from "./detectPackageManager"
Original file line number Diff line number Diff line change 1- import colors from "chalk"
21import {
32 copySync ,
43 existsSync ,
98 renameSync ,
109 writeFileSync ,
1110} from "fs-extra"
11+ import colors from "picocolors"
1212import { dirSync } from "tmp"
1313import { gzipSync } from "zlib"
1414import { applyPatch } from "./applyPatches"
Original file line number Diff line number Diff line change 1- import colors from "chalk "
1+ import colors from "picocolors "
22
33export const makeRegExp = (
44 reString : string ,
Original file line number Diff line number Diff line change 1- import colors from "chalk"
21import { readFileSync } from "fs-extra"
32import { normalize } from "path"
3+ import colors from "picocolors"
44import { PackageDetails } from "../PackageDetails"
55import { relative , resolve } from "../path"
66import { parsePatchFile , PatchFilePart } from "./parse"
You canβt perform that action at this time.
0 commit comments