serverless-plugin-typescript
serverless-plugin-typescript copied to clipboard
running sls offline start while compiling symlink node_module
We are running a setup where we have a serverless lambda folder and an npm folder and have a symlink setup. It works great, but when we run tsc in the npm folder, serverless goes into 'Compiling with Typescript...' infinitely. Here is a screenshot of it:
https://www.evernote.com/l/ADZ0T1hOKCBG97dyqtz5qStX2_Yg0EmpxjY
I think the watch folder just needs to ignore the node_modules folder, but not sure if that is an option.
@bwship did you ever find a solution? That recompile loop really drags us down.
Same, annoying & time consuming issue here 😞 Issuing CTRL+C
won't stop that loop 🙃 so we keep on firing killall node
as a workaround.
⚠️ Ignoring node_modules
might not be a good idea though in the context of a monorepo where Lambda & Yarn Workspaces do rely on symlinks to our packages out there.