dividab / tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API.
MIT License
1.8k stars 100 forks source link

Fix the root path #180

Closed benevbright closed 2 years ago

benevbright commented 2 years ago

fixes #128

rattrayalex commented 2 years ago

Also fixes https://github.com/dividab/tsconfig-paths/issues/113

jonaskello commented 2 years ago

There seems to be a demand for this in both #113 and #128 so it would of course be nice to have it merged.

@benevbright could you also add some tests for both the positive and negative cases of this?

benevbright commented 2 years ago

@jonaskello I've added a test. Thanks! 👍

jonaskello commented 2 years ago

Released in 3.14.0

khalidKhaliqi commented 2 years ago

@benevbright really appreciate this fix!!! helps resolve issues when executing lambdas with layers where lambdas must reference modules using /op/nodejs and tsconfig.json manages the mapping like: /opt/nodejs --> src/common etc.