Skip to content

Commit

Permalink
fix: do not apply hooks to not maintaned packages
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 13, 2018
1 parent a2ea872 commit aad10e7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/private/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { resolve } = require("path")

module.exports = async (packageContext, userConfiguration, inputOptions, progressData) => {
const { path } = packageContext;
const { hooks, packagesMeta, packagesPath } = userConfiguration;
const { packagesMeta, packagesPath } = userConfiguration;
const packageJson = (packageContext.packageJson = getPackageJson(path));
if (!packageJson) return;
const name = (packageContext.name = packageJson.name);
Expand All @@ -32,10 +32,6 @@ module.exports = async (packageContext, userConfiguration, inputOptions, progres
packageContext, userConfiguration, inputOptions, progressData
);

if (hooks.afterPackageInstall) {
await hooks.afterPackageInstall(packageContext, userConfiguration, inputOptions);
}

// Cleanup unexpected dependencies from node_modules
await removeNonDirectDependencies(packageContext, userConfiguration);

Expand Down

0 comments on commit aad10e7

Please sign in to comment.