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 🌹


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo