Skip to content

Commit

Permalink
Merge pull request #1 from sparksuite/master
Browse files Browse the repository at this point in the history
Get up to date
  • Loading branch information
pbelbin authored Jun 1, 2020
2 parents ede3043 + cb077f9 commit 79b2c8e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/chalk.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Imports
import * as chalk from 'chalk';

// Export chalk with color support enabled
export default new chalk.Instance({ level: 3 });
2 changes: 1 addition & 1 deletion src/print-pretty-error.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Dependencies
import chalk from 'chalk';
import chalk from './chalk';

// Print a pretty error message
export default function printPrettyError(message: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/screens.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Dependencies
import chalk from 'chalk';
import chalk from './chalk';
import Table from 'cli-table';
import { Settings } from './types';
import utils from './utils';
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Dependencies
import chalk from 'chalk';
import chalk from './chalk';
import fs from 'fs';
import path from 'path';
import Fuse from 'fuse.js';
Expand Down
2 changes: 1 addition & 1 deletion src/waterfall-cli.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Dependencies
import chalk from 'chalk';
import chalk from './chalk';
import { spawn } from 'child_process';
import fs from 'fs';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion test/print-pretty-error.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Dependencies
const printPrettyError = require('../dist/print-pretty-error').default;
const chalk = require('chalk');
const chalk = require('../dist/chalk').default;

// Holders for capturing console.error output
let spy;
Expand Down

0 comments on commit 79b2c8e

Please sign in to comment.