kotas/gulp-tsc — pull request #18 by kotas (2014-03-22 08:38:27+00:00)
Title: Fix broken backward compatibility with output file path

For issue #17

By changing the strategy how to capture output files from tsc in
7156ee45a1e1e3b4a16a7f3189d9405a3db31a74, path of output files changed
accidentally in some cases. This commit fixes it.

When input paths have any common path, tsc skips that common path
and uses only different part of the path for output files.

For example, if we have "foo/bar/a.ts" and "foo/bar/baz/b.ts", tsc skips
"foo/bar/" automatically and outputs "a.ts" and "baz/b.ts". gulp-tsc
followed that rule implicitly by changing the strategy.

However, this is not ideal for gulp tasks since with gulp.src("foo/**/*.ts")
the plugin should use "bar/a.ts" and "bar/baz/b.ts" for output paths.

To fix this, we add common part of input paths to output paths.