Skip to content

Commit 0f2eae0

Browse files
committed
fix: stay on chalk for now...
1 parent a1abcfd commit 0f2eae0

File tree

12 files changed

+16
-50
lines changed

12 files changed

+16
-50
lines changed

.changeset/slow-llamas-fetch.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
"@unts/patch-package": minor
33
---
44

5-
feat: reduce installation size by replacing several dependencies:
6-
7-
- `chalk` -> `chalk-cjs`
8-
- `json-stable-stringify` -> `@nolyfill/json-stable-stringify`
5+
feat: reduce installation size by replacing `json-stable-stringify` to
6+
`@nolyfill/json-stable-stringify`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"dependencies": {
8282
"@nolyfill/json-stable-stringify": "^1.0.30",
8383
"@yarnpkg/lockfile": "^1.1.0",
84-
"chalk-cjs": "^5.2.0",
84+
"chalk": "^4.1.2",
8585
"ci-info": "^3.7.0",
8686
"cross-spawn": "^7.0.3",
8787
"find-yarn-workspace-root": "^2.0.0",

src/applyPatches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import colors from "chalk-cjs"
1+
import colors from "chalk"
22
import { existsSync, writeFileSync } from "fs-extra"
33
import { posix } from "path"
44
import semver from "semver"

src/createIssue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import colors from "chalk-cjs"
1+
import colors from "chalk"
22
import open from "open"
33
import { stringify } from "querystring"
44
import { PackageManager } from "./detectPackageManager"

src/detectPackageManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import colors from "chalk-cjs"
1+
import colors from "chalk"
22
import findWorkspaceRoot from "find-yarn-workspace-root"
33
import fs from "fs-extra"
44
import process from "process"

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import colors from "chalk-cjs"
1+
import colors from "chalk"
22
import { isCI } from "ci-info"
33
import minimist from "minimist"
44
import { normalize, sep } from "path"

src/makePatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import colors from "chalk-cjs"
1+
import colors from "chalk"
22
import console from "console"
33
import {
44
copySync,

src/makeRegExp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import colors from "chalk-cjs"
1+
import colors from "chalk"
22

33
export const makeRegExp = (
44
reString: string,

src/patch/read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import colors from "chalk-cjs"
1+
import colors from "chalk"
22
import { readFileSync } from "fs-extra"
33
import { normalize } from "path"
44
import { PackageDetails } from "../PackageDetails"

src/rebase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import colors from "chalk-cjs"
1+
import colors from "chalk"
22
import { join, resolve } from "path"
33
import { applyPatch } from "./applyPatches"
44
import { hashFile } from "./hash"

src/stateFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import stringify from "@nolyfill/json-stable-stringify"
2-
import colors from "chalk-cjs"
2+
import colors from "chalk"
33
import { existsSync, readFileSync, unlinkSync, writeFileSync } from "fs"
44
import { join } from "path"
55
import { hashFile } from "./hash"

yarn.lock

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -823,14 +823,7 @@
823823
resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e"
824824
integrity sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==
825825

826-
"@types/node@*":
827-
version "20.11.30"
828-
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.30.tgz#9c33467fc23167a347e73834f788f4b9f399d66f"
829-
integrity sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==
830-
dependencies:
831-
undici-types "~5.26.4"
832-
833-
"@types/node@^12.0.0", "@types/node@^12.7.1":
826+
"@types/node@*", "@types/node@^12.0.0", "@types/node@^12.7.1":
834827
version "12.20.55"
835828
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
836829
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
@@ -1492,11 +1485,6 @@ caseless@~0.12.0:
14921485
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
14931486
integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==
14941487

1495-
chalk-cjs@^5.2.0:
1496-
version "5.2.0"
1497-
resolved "https://registry.yarnpkg.com/chalk-cjs/-/chalk-cjs-5.2.0.tgz#b1b01459462966324d1553accfa45b097cb2293f"
1498-
integrity sha512-GJ7MUEISBU0pglCMmAvpzRav0PN2ZZ33nYNOu07zoLymwY69EFwSqx+VK3wPFKi0dBCn/qgYcJmgPYbEaLynnQ==
1499-
15001488
chalk@^1.0.0, chalk@^1.1.3:
15011489
version "1.1.3"
15021490
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
@@ -2410,16 +2398,11 @@ extglob@^2.0.4:
24102398
snapdragon "^0.8.1"
24112399
to-regex "^3.0.1"
24122400

2413-
extsprintf@1.3.0:
2401+
extsprintf@1.3.0, extsprintf@^1.2.0:
24142402
version "1.3.0"
24152403
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
24162404
integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==
24172405

2418-
extsprintf@^1.2.0:
2419-
version "1.4.1"
2420-
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07"
2421-
integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==
2422-
24232406
fast-deep-equal@^3.1.1:
24242407
version "3.1.3"
24252408
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
@@ -3115,7 +3098,7 @@ inherits@2:
31153098
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
31163099
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
31173100

3118-
ini@1.3.7:
3101+
ini@1.3.7, ini@~1.3.0:
31193102
version "1.3.7"
31203103
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84"
31213104
integrity sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==
@@ -3125,11 +3108,6 @@ ini@2.0.0:
31253108
resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5"
31263109
integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==
31273110

3128-
ini@~1.3.0:
3129-
version "1.3.8"
3130-
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
3131-
integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==
3132-
31333111
inquirer-autosubmit-prompt@^0.2.0:
31343112
version "0.2.0"
31353113
resolved "https://registry.yarnpkg.com/inquirer-autosubmit-prompt/-/inquirer-autosubmit-prompt-0.2.0.tgz#a10f952af4f7bac9c43010e3e9e0891d7e8d15a1"
@@ -4652,16 +4630,11 @@ ms@2.0.0:
46524630
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
46534631
integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==
46544632

4655-
ms@2.1.2:
4633+
ms@2.1.2, ms@^2.1.1:
46564634
version "2.1.2"
46574635
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
46584636
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
46594637

4660-
ms@^2.1.1:
4661-
version "2.1.3"
4662-
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
4663-
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
4664-
46654638
mute-stream@0.0.7:
46664639
version "0.0.7"
46674640
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
@@ -6652,11 +6625,6 @@ unbox-primitive@^1.0.2:
66526625
has-symbols "^1.0.3"
66536626
which-boxed-primitive "^1.0.2"
66546627

6655-
undici-types@~5.26.4:
6656-
version "5.26.5"
6657-
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
6658-
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
6659-
66606628
union-value@^1.0.0:
66616629
version "1.0.1"
66626630
resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847"

0 commit comments

Comments
 (0)