From 2ca862707d65201b946a6792a47da171234b4d0c Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Mon, 31 Jan 2022 08:54:17 -0700 Subject: [PATCH] fix: module resolution of linked plugins (#302) * fix: module resolution of linked plugins * chore: update circle config --- .circleci/config.yml | 3 +++ src/plugin.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1082f5e..78efe6c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,6 +18,9 @@ workflows: - latest - lts - maintenance + exclude: + - os: windows + node_version: latest - release-management/release-package: context: SF-CLI-RELEASE-PROCESS filters: diff --git a/src/plugin.ts b/src/plugin.ts index 3018c71..c34631b 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -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) }