When writing code in Atom, the use of tsconfig.json
to include and exclude folders is essential. For optimal intellisense functionality, the node_modules
folder must be included. However, when compiling to js
, the node_modules
should not be compiled. To achieve this, the tsc
command needs to be called from the parent folder where the config.ts
file is located, resulting in the unintentional compilation of the entire node_modules
directory.
The folder structure is as follows:
node_modules
config.ts
spec
|--test1.ts
|--test2.ts
Is there a solution to exclude the node_modules
directory when running the tsc
command?