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

feat(register): add cwd param #205

Merged
merged 2 commits into from Apr 21, 2022
Merged

Conversation

aleclarson
Copy link
Contributor

@aleclarson aleclarson commented Apr 9, 2022

I'm hitting an edge case where my process.cwd() is not the value I want register to use.

This PR will let me circumvent that programatically.

require('tsconfig-paths').register({
  cwd: 'path/to/cwd',
})

@jonaskello
Copy link
Member

Yes, this seems like a good idea :-) Could you update the README file to add this feature to the docs, and also the CHANGELOG file under the "Unreleased" heading?

@aleclarson
Copy link
Contributor Author

Done ✅

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

2 participants