Skip to content

Commit

Permalink
Fix merging of dependencies. (#26)
Browse files Browse the repository at this point in the history
Making the call.
  • Loading branch information
Alexander Tkachev committed Sep 3, 2020
1 parent 34a3811 commit bf82ada
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NpmProjectManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public function merge($file) {
}

unset($merge['dependencies']);
// Re-read package.json since it could be modified by ensurePackageVersion.
$packageJson = json_decode(file_get_contents($this->packageDirectory . '/package.json'), TRUE);
$packageJson = NestedArray::mergeDeep($packageJson, $merge);

$this->fileSystem->dumpFile(
Expand Down

0 comments on commit bf82ada

Please sign in to comment.