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"

0 commit comments

Comments
 (0)