Skip to content

Commit

Permalink
Allow regular plugins/presets resolution algorithm for packages outsi…
Browse files Browse the repository at this point in the history
…de of the monorepo (#7582)
  • Loading branch information
Andarist authored and loganfsmyth committed Sep 7, 2018
1 parent 1b03906 commit 1e1a89c
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -118,8 +118,11 @@ function wrapPackagesArray(type, names, optionsDir) {

val[0] = path.resolve(optionsDir, val[0]);
} else {
// check node_modules/babel-x-y
val[0] = __dirname + "/../../babel-" + type + "-" + val[0];
const monorepoPath = __dirname + "/../../babel-" + type + "-" + val[0];

if (fs.existsSync(monorepoPath)) {
val[0] = monorepoPath;
}
}

return val;
Expand Down

0 comments on commit 1e1a89c

Please sign in to comment.