In TypeScript's tsconfig file, how do I exclude 'node_modules' folder but include certain sub files -
i have tsconfig so
{ "compileonsave": false, "compileroptions": { "module": "es2015", "target": "es2015", "sourcemap": true, "jsx": "react", "allowsyntheticdefaultimports": true, "noimplicitany": false, "watch": true, "emitdecoratormetadata": true, "experimentaldecorators": true, "allowjs": true, "suppressoutputpathcheck": true }, "exclude": [ "dist", "node_modules", "bower_components", "typings/globals", "typings/modules" ] }
and using webpack bundle project files. definition files have been added using typings npm modules includes own definition files. want able add typescript compilation. otherwise errors cannot find module x
how include definition files in compilation?
certain npm modules includes own definition files
these picked (despite exclude
) if set module
commonjs
🌹