From the documentation it's said that include specifies an array of filenames or patterns to include in the program (i.e. in the compilation process). Similarly, rootDir is the path to the folder with the source code of the app to be included in the compilation process.
"include": ["./src/"],
"exclude": ["node_modules/*", "test/*"],
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"rootDir": "./src",
"outDir": "./dist/",
}
What's their difference then?