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

Add section about TypeScript versions #4161

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading