This project demonstrates a possible bug in the project gulp-typescript
(https://github.com/ivogabe/gulp-typescript) when using both option options.declaration: true
and options.allowJs: true
together.
#Issue
Whe options.allowJs: true
is provided, both TS and JS files get transpiled. All is great.
When both options.allowJs: true
and options.declaration: true
are set, only the typescript files get transpiled and not the javascript files.
#Steps to reproduce
- Pull this project with
git clone
- Pull dependencies with
npm install
- Start by building project with
options.declaration: false
by typinggulp without-declarations
- Now verify that you have a directory named
release/js
which contains bothtestJS.js
andtestTS.js
. This is as expected. - Now remove your release dir with
rm -rf release
- This time build project with
options.declaration: true
by typinggulp with-declarations
- Look in
releases/js
and find that onlytestTS.js
exists there and not the (originally) javascript filetestJS.js
.