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

node_modules of shared folder are ignored #149

Open stanyq4 opened 3 years ago

stanyq4 commented 3 years ago

Hello, my shared folder has its own package.json and node_modules.

When I use shared as a path, the folder is copied to the dist directory, but node_modules are ignored, hence, when running API, I am getting npm MODULE_NOT_FOUND error

Screen Shot 2020-11-21 at 9 43 47 AM Screen Shot 2020-11-21 at 9 43 53 AM Screen Shot 2020-11-21 at 9 44 42 AM

Is this intended behaviour? or I am just missing the setup? Attaching the tsconfig of the shared folder and tsconfig of API project:

Screen Shot 2020-11-21 at 9 46 20 AM Screen Shot 2020-11-21 at 9 46 56 AM