File tree 6 files changed +19
-10
lines changed
6 files changed +19
-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 40
40
"prettier-plugin-packagejson" : " ^2.3.0" ,
41
41
"typescript" : " ^5.3.2"
42
42
},
43
+ "packageManager" :
" [email protected] +sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" ,
43
44
"engines" : {
44
45
"node" : " >=14.18.0"
45
46
},
Original file line number Diff line number Diff line change 14
14
},
15
15
"dependencies" : {
16
16
"@manypkg/get-packages" : " ^2.2.1" ,
17
- "chalk" : " ^2.4.2" ,
18
17
"detect-indent" : " ^6.0.0" ,
19
18
"find-up" : " ^4.1.0" ,
20
19
"fs-extra" : " ^8.1.0" ,
21
20
"normalize-path" : " ^3.0.0" ,
22
21
"p-limit" : " ^2.2.1" ,
23
22
"package-json" : " ^8.1.0" ,
24
23
"parse-github-url" : " ^1.0.2" ,
24
+ "picocolors" : " ^1.1.0" ,
25
25
"sembear" : " ^0.5.0" ,
26
26
"semver" : " ^6.3.0" ,
27
27
"spawndamnit" : " ^2.0.0" ,
Original file line number Diff line number Diff line change 1
1
import { makeCheck , sortObject } from "./utils" ;
2
- import chalk from "chalk " ;
2
+ import pc from "picocolors " ;
3
3
import { Package } from "@manypkg/get-packages" ;
4
4
5
5
type ErrorType = {
@@ -24,11 +24,9 @@ export default makeCheck<ErrorType>({
24
24
delete error . workspace . packageJson . devDependencies ;
25
25
} ,
26
26
print : ( ) => {
27
- return `the root package.json contains ${ chalk . yellow (
27
+ return `the root package.json contains ${ pc . yellow (
28
28
"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 (
32
30
"dependencies"
33
31
) } in a private package does not affect anything and creates confusion.`;
34
32
} ,
Original file line number Diff line number Diff line change 1
- import chalk from "chalk " ;
1
+ import pc from "picocolors " ;
2
2
import util from "util" ;
3
3
4
4
export function format (
@@ -7,9 +7,9 @@ export function format(
7
7
scope ?: string
8
8
) {
9
9
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" ) ,
13
13
} [ messageType ] ;
14
14
let fullPrefix = "☔️ " + prefix + ( scope === undefined ? "" : " " + scope ) ;
15
15
return (
Original file line number Diff line number Diff line change @@ -11335,6 +11335,11 @@ picocolors@^1.0.0:
11335
11335
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
11336
11336
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
11337
11337
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
+
11338
11343
picomatch@^2.0.4, picomatch@^2.0.5:
11339
11344
version "2.0.7"
11340
11345
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.0.7.tgz#514169d8c7cd0bdbeecc8a2609e34a7163de69f6"
You can’t perform that action at this time.
0 commit comments