question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft.TypeScript.Compiler

See original GitHub issue

Search Terms

Microsoft.TypeScript.Compiler Microsoft.TypeScript.MSBuild nuget tsc.exe standalone

Suggestion

Can you point me towards whatever used to be responsible for making this wrapped exe? I was hoping to use this NuGet package for integration of TypeScript into a project which doesn’t use Node,. The idea of having a self-contained NuGet package to let builds be reproduced in the future without Node installed as appealing to me, but I’m not super in tune with the JavaScript ecosystem in general so I wouldn’t know where to begin on making my own self-contained exe like that. Plan B is to just throw Node and tsc.js into an internal NuGet package, but a self-maintained tsc.exe route seems more elegant if it isn’t a huge ordeal. –@PathogenDavid

This is a reopening of this issue #29689, which had outstanding questions.

In particular, as there environments out here that became dependant on the tsc.exe tooling which was optimal for us in producing TS code, how do we properly recreate the tool if it’s not directly provided anymore?

Or perhaps more pointedly, the tsc build team had the ability to produce this before, would it be possible for them to keep the builds running? There would be a great deal of appreciation if that were the case.

Use Cases

There are many projects out there are shipping or aim to ship some typescript without accepting node as a dependency. Many build chains are heavy and fragile already without adding “the tool to build the tool”. Even if we were to use package manager in our devops efforts, that would just get the tool (node) to build the tool (npm) to get and build the tool (tsc) to build our code

(this shenanigans has actually prevented us from using some TS projects\libraries (that didn’t have browser builds) as to not add another layer to the statement above)

😐

Examples

Should be:

C:\Users\Dev>tsc -v
Version 3.9.3

Is:

C:\Users\Dev>tsc -v
Version 3.1.5

Checklist

My suggestion meets these guidelines:

  • This wouldn’t be a breaking change in existing TypeScript/JavaScript code
  • This wouldn’t change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn’t a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript’s Design Goals. [10 sounds nice]

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Gerrit0commented, May 21, 2020

I haven’t used this, but it sounds like you want pkg.

https://www.npmjs.com/package/pkg

0reactions
DanielRosenwassercommented, Jun 11, 2020

Nice! Unfortunately I don’t think we can commit to that at this time because we won’t necessarily be trying it ourselves; we already have some trouble tracking down issues due to divergences in runtimes between Node and Electron. Maintaining your own GitHub mirror and implementing a webhook might be a lightweight way to get it yourself though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compile and build TypeScript code using NuGet
In the Browse tab, search for Microsoft.TypeScript.MSBuild, and then click Install on the right to install the package. Add NuGet package.
Read more >
Microsoft.TypeScript.Compiler 3.1.5 - NuGet
The TypeScript compiler.
Read more >
Documentation - Compiler Options in MSBuild - TypeScript
Which compiler options are available in MSBuild projects. ... which is called a “TypeScript JSON Configuration File” in modern versions of Visual Studio....
Read more >
Using the Compiler API · microsoft/TypeScript Wiki - GitHub
TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Using the Compiler API · microsoft/TypeScript Wiki.
Read more >
typescript - npm
Keywords · TypeScript · Microsoft · compiler · language · javascript ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found