serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

Typescript references / mono repo support?

Open tommedema opened this issue 7 years ago • 3 comments
trafficstars

Typescript 3 supports references:

  • https://blogs.msdn.microsoft.com/typescript/2018/07/30/announcing-typescript-3-0/#project-references
  • https://github.com/Soul-Master/typescript3-composite-project

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

tommedema avatar Aug 20 '18 21:08 tommedema

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.

lucas-rudd avatar Jul 10 '19 04:07 lucas-rudd

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

darbio avatar Dec 28 '23 10:12 darbio

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?

darbio avatar Dec 28 '23 20:12 darbio