Skip to content

Commit 06782ae

Browse files
authored
Merge branch 'master' into vue3-support
2 parents e51165d + ca61eea commit 06782ae

File tree

12 files changed

+132
-82
lines changed

12 files changed

+132
-82
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/config/parse-runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = function(argv, cwd) {
6464

6565
runtimeConfig.context = argv.context;
6666
if (typeof runtimeConfig.context === 'undefined') {
67-
const packagesPath = pkgUp.sync(cwd);
67+
const packagesPath = pkgUp.sync({ cwd });
6868

6969
if (null === packagesPath) {
7070
throw new Error('Cannot determine webpack context. (Are you executing webpack from a directory outside of your project?). Try passing the --context option.');

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: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,28 @@
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",
3737
"file-loader": "^6.0.0",
3838
"friendly-errors-webpack-plugin": "^2.0.0-beta.1",
39-
"loader-utils": "^1.1.0",
39+
"loader-utils": "^2.0.0",
4040
"mini-css-extract-plugin": ">=0.4.0 <0.4.3",
4141
"optimize-css-assets-webpack-plugin": "^5.0.1",
42-
"pkg-up": "^1.0.0",
42+
"pkg-up": "^3.1.0",
4343
"pretty-error": "^2.1.1",
4444
"resolve-url-loader": "^3.0.1",
45-
"semver": "^5.5.0",
45+
"semver": "^7.3.2",
4646
"style-loader": "^1.1.3",
4747
"terser-webpack-plugin": "^1.1.0",
48-
"tmp": "^0.0.33",
48+
"tmp": "^0.2.1",
4949
"webpack": "^4.22.0",
5050
"webpack-cli": "^3.0.0",
5151
"webpack-dev-server": "^3.1.14",
5252
"webpack-manifest-plugin": "^2.0.2",
5353
"webpack-sources": "^1.3.0",
54-
"yargs-parser": "^12.0.0"
54+
"yargs-parser": "^18.1.3"
5555
},
5656
"devDependencies": {
5757
"@babel/plugin-proposal-class-properties": "^7.0.0",
@@ -73,10 +73,10 @@
7373
"eslint-plugin-import": "^2.8.0",
7474
"eslint-plugin-node": "^8.0.1",
7575
"fork-ts-checker-webpack-plugin": "^0.4.1",
76-
"fs-extra": "^8.1.0",
76+
"fs-extra": "^9.0.0",
7777
"handlebars": "^4.0.11",
7878
"handlebars-loader": "^1.7.0",
79-
"http-server": "^0.11.1",
79+
"http-server": "^0.12.3",
8080
"less": "^3.9.0",
8181
"less-loader": "^4.1.0",
8282
"mocha": "^6.0.2",
@@ -87,7 +87,7 @@
8787
"sass": "^1.17.0",
8888
"sass-loader": "^7.0.1",
8989
"sinon": "^2.3.4",
90-
"strip-ansi": "^5.0.0",
90+
"strip-ansi": "^6.0.0",
9191
"stylus": "^0.54.5",
9292
"stylus-loader": "^3.0.2",
9393
"ts-loader": "^5.3.0",

0 commit comments

Comments
 (0)