Skip to content

Commit 17e24c4

Browse files
authored
Merge pull request #135 from arethetypeswrong/proxy-directory-filter
When detecting proxy directories, exclude vendored packages by filtering by package.json name
2 parents 6b11278 + c5923a7 commit 17e24c4

File tree

3 files changed

+888
-62526
lines changed

3 files changed

+888
-62526
lines changed

.changeset/sharp-shrimps-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@arethetypeswrong/core": patch
3+
---
4+
5+
When detecting proxy directories, exclude vendored packages by filtering by package.json name

packages/core/src/checkPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function getProxyDirectories(rootDir: string, fs: Package) {
188188
.filter((f) => {
189189
try {
190190
const packageJson = JSON.parse(fs.readFile(f));
191-
return "main" in packageJson;
191+
return "main" in packageJson && (!packageJson.name || packageJson.name.startsWith(fs.packageName));
192192
} catch {
193193
return false;
194194
}

0 commit comments

Comments
 (0)