It included .d.ts files which is great. But it also included .ts files.
The result is if I try to use typescript to build my project into ES6/ES2015, I got errors like this:
error TS6059: File '/Users/gordon/workspace/CraigsMenu/web/node_modules/angular-2-local-storage/src/ILocalStorageEvent.ts' is not under 'rootDir' '/Users/gordon/workspace/CraigsMenu/web/app'. 'rootDir' is expected to contain all source files.
error TS6059: File '/Users/gordon/workspace/CraigsMenu/web/node_modules/angular-2-local-storage/src/ILocalStorageServiceConfig.ts' is not under 'rootDir' '/Users/gordon/workspace/CraigsMenu/web/app'. 'rootDir' is expected to contain all source files.
error TS6059: File '/Users/gordon/workspace/CraigsMenu/web/node_modules/angular-2-local-storage/src/INotifyOptions.ts' is not under 'rootDir' '/Users/gordon/workspace/CraigsMenu/web/app'. 'rootDir' is expected to contain all source files.
error TS6059: File '/Users/gordon/workspace/CraigsMenu/web/node_modules/angular-2-local-storage/src/LocalStorageService.ts' is not under 'rootDir' '/Users/gordon/workspace/CraigsMenu/web/app'. 'rootDir' is expected to contain all source files.
error TS6059: File '/Users/gordon/workspace/CraigsMenu/web/node_modules/angular-2-local-storage/src/LocalStorageServiceConfig.ts' is not under 'rootDir' '/Users/gordon/workspace/CraigsMenu/web/app'. 'rootDir' is expected to contain all source files.
It included .d.ts files which is great. But it also included .ts files.
The result is if I try to use typescript to build my project into ES6/ES2015, I got errors like this:
My tsconfig.json file looks like this:
The build command is simply: tsc -p tsconfig.json