dsherret / dsherret/ts-morph

Q: How do I navigate source files from a dependency?

Open
#1,485 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

I might be doing things totally wrong but I am using ts-morph to generate a TS file at build time. I want to navigate all the source files within a particular dependency using the normal module resolution algorithm. My package is one of many workspaces and so hard coding the path to `./node_modules/foo/` is not a great idea. This seems like it should be possible but I'm not seeing it. How can this be done? Thanks in advance.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named in the issue. Start with the ts-morph documentation and its module-resolution behavior; done would mean documenting or enabling a way to navigate all source files in a dependency without hard-coded node_modules paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.