Skip to content

Commit

Permalink
fix: fix chalk.cyan not function issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rocwind committed Aug 18, 2020
1 parent 5270f9e commit 176cdcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { execute } from "./command-executor";
import chalk from "chalk";

function run(): void {
if (!command) {
showHelp(/*showRootDescription*/ false);
return;
}
if (!command) {
showHelp(/*showRootDescription*/ false);
return;
}

execute(command).catch((error: any): void => {
console.error(chalk.red("[Error] " + error.message));
process.exit(1);
});
execute(command).catch((error: any): void => {
console.error(chalk.red("[Error] " + error.message));
process.exit(1);
});
}

run();
4 changes: 2 additions & 2 deletions src/lib/react-native-utils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as fs from "fs";
import * as path from "path";
import * as xml2js from "xml2js";
import { out, isDebug } from "../util/interaction";
import { out } from "../util/interaction";
import { isValidVersion, isLowVersion } from "./validation-utils";
import { fileDoesNotExistOrIsDirectory } from "./file-utils";
import * as chalk from "chalk";
import chalk from "chalk";
import * as cli from "../definitions/cli";

const plist = require("plist");
Expand Down

0 comments on commit 176cdcf

Please sign in to comment.