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
1. Init a `tsconfig.json` for TypeScript options with a few key options in your tsconfig.json (`npx tsc --init --esModuleInterop --resolveJsonModule --lib es6,dom --module commonjs`)
10
10
11
-
That's it! Fire up your IDE (e.g. `alm -o`) and play around. Now you can use all the built in node modules (e.g. `import fs = require('fs');`) with all the safety and developer ergonomics of TypeScript!
11
+
That's it! Fire up your IDE (e.g. `code .`) and play around. Now you can use all the built in node modules (e.g. `import * as fs from 'fs';`) with all the safety and developer ergonomics of TypeScript!
12
12
13
13
## Bonus: Live compile + run
14
14
* Add `ts-node` which we will use for live compile + run in node (`npm install ts-node --save-dev`)
@@ -19,7 +19,7 @@ Now just add a `script` target to your `package.json` based on your application
0 commit comments