Skip to content

Commit 176cdcf

Browse files
committed
fix: fix chalk.cyan not function issue
1 parent 5270f9e commit 176cdcf

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/cli.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { execute } from "./command-executor";
44
import chalk from "chalk";
55

66
function run(): void {
7-
if (!command) {
8-
showHelp(/*showRootDescription*/ false);
9-
return;
10-
}
7+
if (!command) {
8+
showHelp(/*showRootDescription*/ false);
9+
return;
10+
}
1111

12-
execute(command).catch((error: any): void => {
13-
console.error(chalk.red("[Error] " + error.message));
14-
process.exit(1);
15-
});
12+
execute(command).catch((error: any): void => {
13+
console.error(chalk.red("[Error] " + error.message));
14+
process.exit(1);
15+
});
1616
}
1717

1818
run();

src/lib/react-native-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as fs from "fs";
22
import * as path from "path";
33
import * as xml2js from "xml2js";
4-
import { out, isDebug } from "../util/interaction";
4+
import { out } from "../util/interaction";
55
import { isValidVersion, isLowVersion } from "./validation-utils";
66
import { fileDoesNotExistOrIsDirectory } from "./file-utils";
7-
import * as chalk from "chalk";
7+
import chalk from "chalk";
88
import * as cli from "../definitions/cli";
99

1010
const plist = require("plist");

0 commit comments

Comments
 (0)