FuelInteractive / fuel-ui

UI Components for use with Angular2 and Bootstrap4
http://fuelinteractive.github.io/fuel-ui
301 stars 56 forks source link

problem when compiling dependent project with typescript. #101

Open goleary opened 8 years ago

goleary commented 8 years ago

I have the node_modules folder excluded in my tsconfig.json file however the typescript compiler attempts to build the fuel-ui module.

tsconfig.json:

{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"inlineSourceMap": true,
"inlineSources": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"rootDir": "app",
"outDir": "dist"
 },
"exclude": [
"node_modules",
"bower_components",
"typings/main",
"typings/main.d.ts",
"dist/node_modules"
]
}

Many of these errors are created:

error TS6059: File 'C:/Users/golear/Documents/GitHub/ShoppingAssist/node_modules/fuel-ui/src/utilities/utilities.ts' is not under 'rootDir' 'app'. 'rootDir' is expected to contain all source files.

No other modules I use actually include the .ts files in their npm package so this is the only one for which I get this error.