VS 2015 Use Node.js as Build Script with TypeScript How to Reference Node -


tldr; how reference node.js in typescript file use pre-compile builds asp.net core app run on linux.

current setup:

install of typescript 2.2.2

npm -g typescript npm init npm --save-dev @types/node 

then reference @ top of file.

/// <reference types="node" /> 

after installing typescript visual studio 2015 worked.

this doesn't work!

more info

i use powershell build tool pre-compile. throws error (wrong os environment). so, thought use node. thought nice use typescript. shows cannot find name 'process'.. so, somehow need reference node typescript file.

i not sure how in vs 2015. don't want install vs 2015 tools node.js. on kill. need simple little script. nice have intellisense. compiling typescript fine.


Comments