Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for tsconfig paths in monorepos #127

Open
bennycode opened this issue Feb 8, 2025 · 0 comments
Open

Support for tsconfig paths in monorepos #127

bennycode opened this issue Feb 8, 2025 · 0 comments

Comments

@bennycode
Copy link
Owner

Project:

  • /tsconfig.json - root tsconfig, has path mappings such as @MyLib -> /libs/mylib/src/index.ts
  • /libs/*
  • /libs/mylib/tsconfig.json lib tsconfig extends root one and has an include field for src/*
  • /libs/mylib/src/*
  • /apps/myapp/tsconfig.json app tsconfig extends root one and has an include field for src/*
  • /apps/myapp/src/*

Currently sourceFile.getProject() from ts-morph](https://github.com/dsherret/ts-morph) to locate TS configs. The sourceFile should be a .d.ts file to properly find references from co-located packages: dsherret/ts-morph#1242 (comment)

@bennycode bennycode changed the title Partial Support for tsconfig Paths Support for tsconfig paths in monorepos Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant