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 (`npx tsc --init`)
10
-
1. Make sure you have `compilerOptions.module:commonjs` in your tsconfig.json
9
+
1. Init a `tsconfig.json` for TypeScript options, making sure you have `compilerOptions.module:commonjs` in your tsconfig.json (`npx tsc --init --module commonjs`)
11
10
12
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!
0 commit comments