Skip to content

Commit 410c7fc

Browse files
committed
Upgrade chalk packages
1 parent 9700574 commit 410c7fc

File tree

11 files changed

+19
-11
lines changed

11 files changed

+19
-11
lines changed

bin/encore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
const parseRuntime = require('../lib/config/parse-runtime');
1414
const context = require('../lib/context');
15-
const chalk = require('chalk').default;
15+
const chalk = require('chalk');
1616
const logger = require('../lib/logger');
1717

1818
const runtimeConfig = parseRuntime(

lib/EncoreProxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313
const levenshtein = require('fast-levenshtein');
1414
const prettyError = require('./utils/pretty-error');
1515

lib/friendly-errors/asset-output-display-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313

1414
function AssetOutputDisplayPlugin(outputPath, friendlyErrorsPlugin) {
1515
this.outputPath = outputPath;

lib/friendly-errors/formatters/missing-css-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313

1414
function formatErrors(errors) {
1515
if (errors.length === 0) {

lib/friendly-errors/formatters/missing-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313
const loaderFeatures = require('../../features');
1414

1515
function formatErrors(errors) {

lib/friendly-errors/formatters/missing-postcss-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313

1414
function formatErrors(errors) {
1515
if (errors.length === 0) {

lib/loaders/eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
}
4646
} catch (e) {
4747
if (isMissingConfigError(e)) {
48-
const chalk = require('chalk').default;
48+
const chalk = require('chalk');
4949
const packageHelper = require('../package-helper');
5050

5151
const message = `No ESLint configration has been found.

lib/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313

1414
const messagesKeys = [
1515
'debug',

lib/package-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
const chalk = require('chalk').default;
12+
const chalk = require('chalk');
1313
const fs = require('fs');
1414
const logger = require('./logger');
1515
const semver = require('semver');

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@babel/preset-env": "^7.4.0",
3131
"assets-webpack-plugin": "^3.9.7",
3232
"babel-loader": "^8.0.0",
33-
"chalk": "^2.4.1",
33+
"chalk": "^4.0.0",
3434
"clean-webpack-plugin": "^0.1.19",
3535
"css-loader": "^3.5.2",
3636
"fast-levenshtein": "^2.0.6",
@@ -86,7 +86,7 @@
8686
"sass": "^1.17.0",
8787
"sass-loader": "^7.0.1",
8888
"sinon": "^2.3.4",
89-
"strip-ansi": "^5.0.0",
89+
"strip-ansi": "^6.0.0",
9090
"stylus": "^0.54.5",
9191
"stylus-loader": "^3.0.2",
9292
"ts-loader": "^5.3.0",

0 commit comments

Comments
 (0)