We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f5b9ed commit 4d705ceCopy full SHA for 4d705ce
dictionary/build.ts
@@ -53,7 +53,8 @@ export async function build(): Promise<boolean> {
53
function displayError(source: string, errors: ReadonlyArray<ResultError>) {
54
let color: boolean;
55
try {
56
- color = Deno.env.get("NO_COLOR") !== "1";
+ const noColor = Deno.env.get("NO_COLOR");
57
+ color = noColor == null || noColor === "";
58
} catch (error) {
59
if (error instanceof Deno.errors.NotCapable) {
60
color = true;
0 commit comments