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 Typescript source map resolution #30

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

mark-plukkido
Copy link

Hi,

I've created this patch to support source map resolution for Nest TypeScript applications. It is a somewhat simplistic solution as it does not read the source map tag in the compiled JS files. It assumes the source map file is right beside the compiled JS file. This is what nest start does by default.

Let me know if there are any issues with this PR, I'm happy to work on it.

@mark-plukkido
Copy link
Author

I tried to raise code coverage to pass the tests by either writing .map files or using mock-fs. None of them seems to be working. This does not affect the actual code, just the tests. I'm open to suggestions as I've run out of ideas.

permanently so CI tests can hopefully execute
@mark-plukkido
Copy link
Author

I've added a static .map file to the src/__tests__ directory so the CI test completes, but it's clearly not the nicest solution.

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.

None yet

1 participant