Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: module resolution of linked plugins (#302)
Browse files Browse the repository at this point in the history
* fix: module resolution of linked plugins

* chore: update circle config
  • Loading branch information
mdonnalley authored Jan 31, 2022
1 parent 37d7fcb commit 2ca8627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ workflows:
- latest
- lts
- maintenance
exclude:
- os: windows
node_version: latest
- release-management/release-package:
context: SF-CLI-RELEASE-PROCESS
filters:
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async function findRoot(name: string | undefined, root: string) {
if (name) {
let pkgPath
try {
pkgPath = resolvePackage(name, {paths: [__dirname, root]})
pkgPath = resolvePackage(name, {paths: [root]})
} catch (error) {}
return pkgPath ? findSourcesRoot(path.dirname(pkgPath)) : findRootLegacy(name, root)
}
Expand Down

0 comments on commit 2ca8627

Please sign in to comment.