Skip to content

Commit 22d8dbf

Browse files
authored
Major upgrade chalk and start using chalk-template (#1715)
1 parent 9cba746 commit 22d8dbf

File tree

94 files changed

+1137
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1137
-202
lines changed

package-lock.json

Lines changed: 1039 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
"ajv": "8.x.x",
2828
"axios": "1.13.2",
2929
"base64url": "3.x.x",
30-
"camelcase": "^9.0.0",
31-
"chalk": "4.x.x",
30+
"camelcase": "9.x.x",
31+
"chalk": "^5.6.2",
32+
"chalk-template": "^1.1.2",
3233
"checksum": "1.x.x",
3334
"deep-extend": "0.6.x",
3435
"dotenv": "17.x",
@@ -44,7 +45,7 @@
4445
"re2js": "1.x.x",
4546
"semver": "7.x.x",
4647
"split2": "4.x.x",
47-
"terminal-link": "^5.0.0",
48+
"terminal-link": "5.x.x",
4849
"yargs": "17.x.x"
4950
},
5051
"devDependencies": {

src/argv.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import * as path from "path";
55
import camelCase from "camelcase";
66
import {Utils} from "./utils.js";
77
import {WriteStreams} from "./write-streams.js";
8-
import chalk from "chalk";
8+
import chalkBase from "chalk";
9+
import chalk from "chalk-template";
910

1011
async function isInGitRepository () {
1112
try {
@@ -69,7 +70,7 @@ export class Argv {
6970

7071
private constructor (argv: any, writeStreams?: WriteStreams) {
7172
if (argv.noColor) {
72-
chalk.level = 0;
73+
chalkBase.level = 0;
7374
}
7475
this.writeStreams = writeStreams;
7576
for (const [key, value] of Object.entries(argv)) {

src/commander.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from "chalk";
1+
import chalk from "chalk-template";
22
import {Job} from "./job.js";
33
import {Parser} from "./parser.js";
44
import {Utils} from "./utils.js";

src/data-expander.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from "chalk";
1+
import chalk from "chalk-template";
22
import deepExtend from "deep-extend";
33
import assert, {AssertionError} from "assert";
44
import {Job, Need} from "./job.js";

src/executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from "chalk";
1+
import chalk from "chalk-template";
22
import {Job} from "./job.js";
33
import assert, {AssertionError} from "assert";
44
import {Argv} from "./argv.js";

src/git-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Utils} from "./utils.js";
22
import assert, {AssertionError} from "assert";
33
import {WriteStreams} from "./write-streams.js";
4-
import chalk from "chalk";
4+
import chalk from "chalk-template";
55

66
export type GitSchema = "git" | "http" | "https" | "ssh";
77

src/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as yaml from "js-yaml";
2-
import chalk from "chalk";
2+
import chalk from "chalk-template";
33
import path from "path";
44
import fs from "fs-extra";
55
import yargs from "yargs";

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
import chalk from "chalk";
2+
import chalk from "chalk-template";
33
import yargs from "yargs";
44
import {Parser} from "./parser.js";
55
import * as state from "./state.js";

src/job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from "chalk";
1+
import chalk from "chalk-template";
22
import * as dotenv from "dotenv";
33
import fs from "fs-extra";
44
import prettyHrtime from "pretty-hrtime";

0 commit comments

Comments
 (0)