Skip to content

Commit

Permalink
fix issue with resolving local plugins (#4275)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsriram authored and KyleAMathews committed Feb 28, 2018
1 parent 40c94f9 commit c5ed4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/bootstrap/load-plugins/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function resolvePlugin(pluginName) {
// Only find plugins when we're not given an absolute path
if (!fs.existsSync(pluginName)) {
// Find the plugin in the local plugins folder
const resolvedPath = slash(path.resolve(`../plugins/${pluginName}`))
const resolvedPath = slash(path.resolve(`./plugins/${pluginName}`))

if (fs.existsSync(resolvedPath)) {
if (fs.existsSync(`${resolvedPath}/package.json`)) {
Expand Down

0 comments on commit c5ed4ae

Please sign in to comment.