$ npm init
$ tsc --init
Ts config:
- "target": "es2018": Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
- "module": "commonjs": Specify what module code is generated.
- "moduleResolution": "node": Specify how TypeScript looks up a file from a given module specifier.
- "rootDir": "./src": Specify the root folder within your source files.
- "outDir": "./dist": Specify an output folder for all emitted files.