serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
783 stars 223 forks source link

fix: handle no node_modules directory #224

Open perrin4869 opened 3 years ago

perrin4869 commented 3 years ago

This PR fixes https://github.com/prisma-labs/serverless-plugin-typescript/issues/210 Not all projects have a node_modules directory in them

31i0t commented 2 years ago

I have this issue as well as my service is in a monorepo, currently including a node_modules with a README.md in it just to avoid the error. Would be great if this could get merged in!

john-tipper commented 2 years ago

I'm in a similar position to @31i0t, please consider merging this PR.

AndrewBenzSW commented 1 year ago

This is an issue for me as well. I'm using Yarn with PnP so there is no node_modules folder. It's not a problem when running locally, but when trying to build and bundle the app using Yarn.build, I get an ENOENT: no such file or directory on the node_modules link.