New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulumi overrides tsconfig.json target #2673
Comments
Interesting - I don't recall exactly why we hard coded this one in. It would be nice to ensure that the |
At a minimum, for cases where |
That seems like a good idea. Worth noting that if you're going to read I've used https://github.com/TypeStrong/tsconfig for a quick and dirty tool before and it was OK, but has some weird shortcomings like choking on trailing commas where tsc does not. I think they call it |
Any update on this? |
Fixed by #7068 |
AWS Lambda supports new-enough node such that we don't need to transpile-away async/await, but Pulumi seems to force tsc to target "es6" (aka "es2015", I think) via ts-node.
For context: I am trying to debug some subtle issue and it was faster to iterate in the Lambda console, but the inversion of control created by the awaiter machinery is a pain to work with. I knew my tsconfig was set to the appropriate target, so I went spelunking and found where Pulumi is not respecting that.
As a component of a potential fix, change this line:
pulumi/sdk/nodejs/cmd/run/run.ts
Line 157 in 70bc043
to target "es2018" and everything seemed to work as expected.
The text was updated successfully, but these errors were encountered: