-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jsii): dependency submodules are not tagged (#1663)
The Assembler used to ignore any export that was coined as an external library import by the TypeScript resolver. However, when traversing dependencies to collect their submodule structure, everything is an external library import (which basically is a check that the import path has a `/node_modules/` in it). This commit changes the way external imports are skipped so that when investigating submodules of a particular dependency, a different logic is used to determine whether they are external (checks that the file is under the same root; and that it is not under a `/node_modules/` subdirectory of that root). > **Note:** > This is difficult to test for in the contect of a mono-repo, as it > requires an external dependency (dependencies within the mono-repo are > resolved to their "canonical" path, which does not include the > `/node_modules/` path element, and thus is not reported as an external > library import, apparently).
- Loading branch information
1 parent
4635654
commit 18e3702
Showing
1 changed file
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters