Closed wolverian closed 6 years ago
Thank you.
The intended modus of working with cloudform, although maybe not clearly stated in the Readme file, is that you are not expected to compile it yourself as a part of your project. It self-contains the pre-configured TypeScript compiler. What you are expected to do is to use cloudform
CLI command to generate the template file out of the TypeScript definition.
This is how it works right now, although I can understand your reasoning and I'll have a thought about allowing external compilation.
Ah, thank you! I see the README does actually mention the intended way of invoking cloudform.
I think we'd prefer to use external compilation, mostly because then we would be certain which version of the TS compiler and which settings the compilation is using.
Importing cloudform/dist
works as a workaround, as far as I can see, so this is not a blocker for us. Thank you!
Thinking about your problem – you should be able to compile it on your own with --lib es2015
compiler option.
Not sure if it solves your problem. Let me know if you need anything more.
@wolverian This is now solved in v2.0.0 as the package no longer includes TypeScript files, just .js and .d.ts, so you should be able to compile your template on your own – check the newest release and reopen in case you need anything more. Thank you!
Thank you! I will upgrade our dependency and test.
On 22 Mar 2018, at 23.06, Adam Bar notifications@github.com wrote:
@wolverian This is now solved in v2.0.0 as the package no longer includes TypeScript files, just .js and .d.ts, so you should be able to compile your template on your own – check the newest release and reopen in case you need anything more. Thank you!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I can report we can now import “cloudform”
and everything works as expected. Thank you! 😍
What doesn't work:
import "cloudform"
What does work:import "cloudform/dist"
Steps to reproduce:
Expected results: compilation passes with no errors.
Actual result: