Alberplz / angular2-color-picker

Angular 2 Color Picker Directive, no dependences required.
MIT License
185 stars 82 forks source link

--ourDir of tsc fails when using Angular2-Color-Picker #35

Closed garethlewis closed 7 years ago

garethlewis commented 7 years ago

I have come across an issue when building for production.

I have a development structure such public/ app/ folders/

If you have a step such as tsc -p public --outdir dist

Instead of getting dist/ app/ folders/

The tsc compilers gets confused by the presence of the color-picker, and I get.

dist/ app/ public/ app/ node_modules/ angular2-color-picker.

If I remove the color picker, the tsc --outDir command works correctly. If I try and force the rootDir, tsc complains about the index.ts and index.d.ts files being at the same level in color-picker.

Has anyone else found this problem and maybe had a solution?