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

Fix tscoder dependencies #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Lorenzobattistela
Copy link
Contributor

@Lorenzobattistela Lorenzobattistela commented Aug 20, 2024

  • Pass dependencies command as a system property to run the correct command for the language
  • Get the dependent files using the proper command -> a list of absolute, resolved paths
  • Read the contents of those paths as context

Tscoder fixes:

  • Output a list of absolute paths, e.g import { b } from './a' assuming the path of current file is /home/this_path/, the return of tscoder is ['home/this_path/a']
  • Document tscoder
    It works for dependent / independent imports, does not crash on circular dependencies. Returns only the file and not what it imports from the file.

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

Successfully merging this pull request may close these issues.

1 participant