You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Nuget Package Manager Console (found in Tools > NuGet Package Manager > Package Manager Console) and then running:<br/><codestyle={{fontSize: "14px"}}>Install-Package Microsoft.TypeScript.MSBuild</code>
57
57
</li>
58
58
</ul>
59
-
<p>For project types which don't support Nuget. You can use the <ahref={releaseInfo.vs.stable.vs2019_download}> TypeScript Visual Studio extension</a>. You can <ahref="https://docs.microsoft.com/visualstudio/ide/finding-and-using-visual-studio-extensions?view=vs-2019">install the extension</a> using <code>Extensions > Manage Extensions</code> in Visual Studio.</p>
59
+
<p>For project types which don't support Nuget, you can use the <ahref={releaseInfo.vs.stable.vs2019_download}> TypeScript Visual Studio extension</a>. You can <ahref="https://docs.microsoft.com/visualstudio/ide/finding-and-using-visual-studio-extensions?view=vs-2019">install the extension</a> using <code>Extensions > Manage Extensions</code> in Visual Studio.</p>
<p>It can be handy to have TypeScript available across all projects, often to test one-off ideas. Long-term, codebases should prefer a project-wide installation over a global install so that they can benefit from reproducible builds across different machines..</p>
70
+
<p>It can be handy to have TypeScript available across all projects, often to test one-off ideas. Long-term, codebases should prefer a project-wide installation over a global install so that they can benefit from reproducible builds across different machines.</p>
<p>You can use npm to install TypeScript globally, this means you can use the <code>tsc</code> command anywhere in your terminal.</p>
75
+
<p>You can use npm to install TypeScript globally, this means that you can use the <code>tsc</code> command anywhere in your terminal.</p>
76
76
<p>To do this, run <code>npm install -g typescript</code>. This will install the latest version (currently {releaseInfo.tags.stableMajMin}).</p>
77
77
<p>An alternative is to use <atitle="Link to the npx package on npm"href="https://www.npmjs.com/package/npx">npx</a> when you have to run <code>tsc</code> for one-off occasions.</p>
<h2>Working with TypeScript-compatible transpilers</h2>
91
91
<p>There are other tools which convert TypeScript files to JavaScript files. You might use these tools for speed or consistency with your existing build tooling.</p>
92
-
<p>Each of these projects handle the file conversion, but do not handle the type-checking aspects of the TypeScript compiler. So, it's likely you'll still need to keep the TypeScript dependency from above around, and you'll want to enable <Linkto="/tsconfig#isolatedModules"><code>isolatedModules</code></Link>.</p>
92
+
<p>Each of these projects handle the file conversion, but do not handle the type-checking aspects of the TypeScript compiler. So it's likely that you will still need to keep the above TypeScript dependency around, and you will want to enable <Linkto="/tsconfig#isolatedModules"><code>isolatedModules</code></Link>.</p>
<p><ahref='https://swc-project.github.io/docs/installation/'>swc</a> is a fast, transpiler created in Rust which supports many of Babel's features including TypeScript.</p>
102
+
<p><ahref='https://swc-project.github.io/docs/installation/'>swc</a> is a fast transpiler created in Rust which supports many of Babel's features including TypeScript.</p>
0 commit comments