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

Commit

Permalink
Add section about TypeScript versions
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp committed Apr 10, 2024
1 parent 7912209 commit c1118d1
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.

```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 c1118d1

Please sign in to comment.