# Nightly Builds

A nightly build from the [TypeScript’s `main`](https://github.com/Microsoft/TypeScript/tree/main) branch is published by midnight PST to npm. Here is how you can get it and use it with your tools.

## [Using npm](/content/docs/handbook/nightly-builds.html#using-npm/index.html)
```
shell
npm install -D typescript@next
```

## [Updating your IDE to use the nightly builds](/content/docs/handbook/nightly-builds.html#updating-your-ide-to-use-the-nightly-builds/index.html)
You can also update your editor/IDE to use the nightly drop. You will typically need to install the package through npm. The rest of this section mostly assumes `typescript@next` is already installed.

### [Visual Studio Code](/content/docs/handbook/nightly-builds.html#visual-studio-code/index.html)
The VS Code website [has documentation on selecting a workspace version of TypeScript](https://code.visualstudio.com/Docs/languages/typescript#_using-newer-typescript-versions). After installing a nightly version of TypeScript in your workspace, you can follow directions there, or simply update your workspace settings in the JSON view. A direct way to do this is to open or create your workspace’s `.vscode/settings.json` and add the following property:
```
json
"typescript.tsdk": "<path to your folder>/node_modules/typescript/lib"
```
Alternatively, if you simply want to run the nightly editing experience for JavaScript and TypeScript in Visual Studio Code without changing your workspace version, you can run the [JavaScript and TypeScript Nightly Extension](https://marketplace.visualstudio.com/items?itemName%253Dms-vscode.vscode-typescript-next)

### [Sublime Text](/content/docs/handbook/nightly-builds.html#sublime-text/index.html)
Update the `Settings - User` file with the following:
```
json
"typescript_tsdk": "<path to your folder>/node_modules/typescript/lib"
```
More information is available at the [TypeScript Plugin for Sublime Text installation documentation](https://github.com/Microsoft/TypeScript-Sublime-Plugin#installation).

### [Visual Studio 2013 and 2015](/content/docs/handbook/nightly-builds.html#visual-studio-2013-and-2015/index.html)
> Note: Most changes do not require you to install a new version of the VS TypeScript plugin.

The nightly build currently does not include the full plugin setup, but we are working on publishing an installer on a nightly basis as well.

1. Download the [VSDevMode.ps1](https://github.com/Microsoft/TypeScript/blob/main/scripts/VSDevMode.ps1) script.

> Also see our wiki page on [using a custom language service file](https://github.com/Microsoft/TypeScript/wiki/Dev-Mode-in-Visual-Studio#using-a-custom-language-service-file).

2. From a PowerShell command window, run:

For VS 2015:
```
VSDevMode.ps1 14 -tsScript <path to your folder>/node_modules/typescript/lib
```
For VS 2013:
```
VSDevMode.ps1 12 -tsScript <path to your folder>/node_modules/typescript/lib
```

### [IntelliJ IDEA (Mac)](/content/docs/handbook/nightly-builds.html#intellij-idea-mac/index.html)
Go to `Preferences` > `Languages & Frameworks` > `TypeScript`:
> TypeScript Version: If you installed with npm: `/usr/local/lib/node_modules/typescript/lib`

### [IntelliJ IDEA (Windows)](/content/docs/handbook/nightly-builds.html#intellij-idea-windows/index.html)
Go to `File` > `Settings` > `Languages & Frameworks` > `TypeScript`:
> TypeScript Version: If you installed with npm: `C:\Users\USERNAME\AppData\Roaming\npm\node_modules\typescript\lib`

The TypeScript docs are an open source project. Help us improve these pages [by sending a Pull Request](https://github.com/microsoft/TypeScript-Website/blob/v2/packages/documentation/copy/en/Nightly%20Builds.md) ❤

Contributors to this page:

- MH   
- OT   
- S   
- DR   
- NS

Last updated: Apr 28, 2026
