Skip to content

Commit 27fc03a

Browse files
committed
Upgrade pkg-up
1 parent 7dfd592 commit 27fc03a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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.');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"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",
4545
"semver": "^5.5.0",

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6262,20 +6262,20 @@ pkg-dir@^3.0.0:
62626262
dependencies:
62636263
find-up "^3.0.0"
62646264

6265-
pkg-up@^1.0.0:
6266-
version "1.0.0"
6267-
resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26"
6268-
integrity sha1-Pgj7RhUlxEIWJKM7n35tCvWwWiY=
6269-
dependencies:
6270-
find-up "^1.0.0"
6271-
62726265
pkg-up@^2.0.0:
62736266
version "2.0.0"
62746267
resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-2.0.0.tgz#c819ac728059a461cab1c3889a2be3c49a004d7f"
62756268
integrity sha1-yBmscoBZpGHKscOImivjxJoATX8=
62766269
dependencies:
62776270
find-up "^2.1.0"
62786271

6272+
pkg-up@^3.1.0:
6273+
version "3.1.0"
6274+
resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5"
6275+
integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==
6276+
dependencies:
6277+
find-up "^3.0.0"
6278+
62796279
pn@^1.1.0:
62806280
version "1.1.0"
62816281
resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb"

0 commit comments

Comments
 (0)