Skip to content

Commit

Permalink
Fix package.json wrong location detecting
Browse files Browse the repository at this point in the history
  • Loading branch information
kisenka committed Sep 1, 2016
1 parent e63e251 commit 23e9542
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .idea/runConfigurations/Build.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/runConfigurations/Clean.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/runConfigurations/DevServer.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/runConfigurations/Tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/plugins/SourcePackageInfoPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SourcePackageInfoPlugin.prototype.apply = function (compiler) {
compilation.plugin(HOOKS.SOURCES_CREATED, function (sources, done) {

var promises = Promise.map(sources, function (source) {
return findFile('package.json', source.absolutePath)
return findFile('package.json', {cwd: path.dirname(source.absolutePath)})
.then(function (filepath) {
if (filepath === null)
return;
Expand Down

0 comments on commit 23e9542

Please sign in to comment.