Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4161 from pulumi/julienp/typescript-version
Browse files Browse the repository at this point in the history
Add section about TypeScript versions
  • Loading branch information
julienp authored Apr 16, 2024
2 parents 3fd4386 + e6ffff7 commit 4e97926
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions themes/default/content/docs/languages-sdks/javascript/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,22 @@ Tools like VS Code will give you completion lists, live error reporting and inli

<img src="/images/docs/reference/vscode.png" alt="Pulumi TypeScript in VS Code" width="700">

## TypeScript Versions

Pulumi ships with a bundled version of TypeScript 3.8.3 and uses this compiler by default. You can use a different version by adding the desired version of TypeScript to your package.json file. When Pulumi runs a TypeScript program, it will first attempt to load the compiler from the local node_modules directory, and then fallback to the bundled version. Pulumi supports all TypeScript versions from 3.8 and up, including the latest TypeScript 5 release.

```json
{
"name": "my-package",
"version": "1.0.0",
"dependencies": {
...
"typescript": "^5.4.2",
...
}
}
```

## Disabling built in TypeScript support

You can disable the built in TypeScript support by changing the `runtime` setting in `Pulumi.yaml` to look like the following:
Expand Down

0 comments on commit 4e97926

Please sign in to comment.