Skip to content

Commit

Permalink
Ignore devDependencies in theme package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Sep 7, 2021
1 parent 0572d7b commit ce02bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hexo/load_plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function loadModuleList(ctx, basedir) {
const deps = Object.keys(json.dependencies || {});
const devDeps = Object.keys(json.devDependencies || {});

return deps.concat(devDeps);
return basedir === ctx.base_dir ? deps.concat(devDeps) : deps;
});
}).filter(name => {
// Ignore plugins whose name is not started with "hexo-"
Expand Down

0 comments on commit ce02bcf

Please sign in to comment.