serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
784 stars 224 forks source link

Typescript references / mono repo support? #110

Open tommedema opened 6 years ago

tommedema commented 6 years ago

Typescript 3 supports references:

Does this plugin respect references and include dependencies from depended upon packages in a mono repo?

lucas-rudd commented 5 years ago

It doesn't seem like this plugin natively supports that from what I can tell.

I'd be interested in seeing the ability to pass an option to this plugin in the custom section. All I'm needing at the moment is for the -b option to be passed when the compiler is run (I don't see anywhere where I can specify build: true in the compilerOptions for my service level tsconfig, and I've tried to no avail, but I may be wrong on that).

Edit:

It seems like the real problem here is that typescript does not yet support the 'build' option to be passed in programmatically to the typescript SDK, nor do they allow it in tsconfig.

I've opened a suggestion to add this as a feature to the Typescript repository here, but it's been declined.

darbio commented 9 months ago

The issue referenced was closed 3 years ago. Does it address this issue? Can it be closed?

darbio commented 9 months ago

The issue referenced was closed 3 years ago. Does it address this issue? Can it be closed?

Nope - I tried an example and this still does not work with project references.

What changes are required to make this work?