File tree Expand file tree Collapse file tree 5 files changed +18
-10
lines changed Expand file tree Collapse file tree 5 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @manypkg/cli " : minor
3+ ---
4+
5+ Replace ` chalk ` with ` picocolors `
Original file line number Diff line number Diff line change 1414 },
1515 "dependencies" : {
1616 "@manypkg/get-packages" : " ^2.2.1" ,
17- "chalk" : " ^2.4.2" ,
1817 "detect-indent" : " ^6.0.0" ,
1918 "find-up" : " ^4.1.0" ,
2019 "normalize-path" : " ^3.0.0" ,
2120 "p-limit" : " ^2.2.1" ,
2221 "package-json" : " ^8.1.0" ,
2322 "parse-github-url" : " ^1.0.2" ,
23+ "picocolors" : " ^1.1.0" ,
2424 "sembear" : " ^0.5.0" ,
2525 "semver" : " ^6.3.0" ,
2626 "spawndamnit" : " ^2.0.0" ,
Original file line number Diff line number Diff line change 11import { makeCheck , sortObject } from "./utils" ;
2- import chalk from "chalk " ;
2+ import pc from "picocolors " ;
33import { Package } from "@manypkg/get-packages" ;
44
55type ErrorType = {
@@ -24,11 +24,9 @@ export default makeCheck<ErrorType>({
2424 delete error . workspace . packageJson . devDependencies ;
2525 } ,
2626 print : ( ) => {
27- return `the root package.json contains ${ chalk . yellow (
27+ return `the root package.json contains ${ pc . yellow (
2828 "devDependencies"
29- ) } , this is disallowed as ${ chalk . yellow (
30- "devDependencies"
31- ) } vs ${ chalk . green (
29+ ) } , this is disallowed as ${ pc . yellow ( "devDependencies" ) } vs ${ pc . green (
3230 "dependencies"
3331 ) } in a private package does not affect anything and creates confusion.`;
3432 } ,
Original file line number Diff line number Diff line change 1- import chalk from "chalk " ;
1+ import pc from "picocolors " ;
22import util from "util" ;
33
44export function format (
@@ -7,9 +7,9 @@ export function format(
77 scope ?: string
88) {
99 let prefix = {
10- error : chalk . red ( "error" ) ,
11- success : chalk . green ( "success" ) ,
12- info : chalk . cyan ( "info" ) ,
10+ error : pc . red ( "error" ) ,
11+ success : pc . green ( "success" ) ,
12+ info : pc . cyan ( "info" ) ,
1313 } [ messageType ] ;
1414 let fullPrefix = "☔️ " + prefix + ( scope === undefined ? "" : " " + scope ) ;
1515 return (
Original file line number Diff line number Diff line change @@ -11335,6 +11335,11 @@ picocolors@^1.0.0:
1133511335 resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
1133611336 integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
1133711337
11338+ picocolors@^1.1.0:
11339+ version "1.1.0"
11340+ resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59"
11341+ integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==
11342+
1133811343picomatch@^2.0.4, picomatch@^2.0.5:
1133911344 version "2.0.7"
1134011345 resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.0.7.tgz#514169d8c7cd0bdbeecc8a2609e34a7163de69f6"
You can’t perform that action at this time.
0 commit comments