Skip to content

Commit

Permalink
fix: ensure to reread package.json after pull
Browse files Browse the repository at this point in the history
Dependencies were installed for not up to date
packageJson shape
  • Loading branch information
medikoo committed May 31, 2019
1 parent 019799b commit 238cb5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/private/install-maintained-package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ module.exports = async (packageContext, userConfiguration, inputOptions, progres

// Ensure repository is up to date
packageContext.installationJobs = await setupRepository(path, meta.repoUrl, inputOptions);
if (packageContext.installationJobs.has("pull")) {
// Refresh after update
packageContext.packageJson = getPackageJson(path);
}

// Cleanup outcome of eventual previous npm crashes
await cleanupNpmInstall(packageContext);
Expand Down

0 comments on commit 238cb5d

Please sign in to comment.