https://pulumi.com logo
#typescript
Title
# typescript
f

famous-sugar-52038

04/24/2020, 3:53 PM
Hi, Guys! I am truly glad to hear that Pulumi 2.0 has been released! I believe in the superpower of Pulumi. btw, Why does Pulumi use ES2016 as a default target of compiler option? This attachment is a pic of initial tsconfig after installation of Pulumi and execution of
pulumi new
.
(And I want to know a best practice of tsconfig setting for using pulumi…I know It’s up to my demands. however, Is there what I should set as default??
m

microscopic-pilot-97530

04/24/2020, 4:24 PM
The tsconfig settings in our templates are generally what we’d recommend. We’re thinking about bumping the target in our templates to
es2018
as it has broad support in Node 10+.
f

famous-sugar-52038

04/24/2020, 4:48 PM
Thank you for quick response! I get it. I set es2016 as the target.
a

acceptable-stone-35112

04/27/2020, 8:17 AM
I tried running my stacks with following tsconfig (borrowed from other project) and didn't detect any regression:
Copy code
"compilerOptions": {
        "strict": true,
        "outDir": "bin",
        "target": "ESNext",
        "module": "commonjs",
        "moduleResolution": "node",
        "sourceMap": true,
        "experimentalDecorators": true,
        "pretty": true,
        "noFallthroughCasesInSwitch": true,
        "noImplicitReturns": true,
        "forceConsistentCasingInFileNames": true,
        "strictNullChecks": true,
        "strictFunctionTypes": true,
        "strictPropertyInitialization": true,
        "strictBindCallApply": true,
        "noImplicitThis": true
    }
f

famous-sugar-52038

04/29/2020, 2:03 AM
@acceptable-stone-35112 Oh!!!! Thank you for sharing your tsconfig! I am gonna dissect it on my env 😄