Fix build/src/external/src/types.js dependency

The dependencies for build/src/external/src/types.js were wrong, which
meant that build/src/external/src/types.js would always be rebuilt,
which meant that almost everything else would be rebuilt too.
Merge pull request #442 from twpayne/fix-types-js-dependency

Fix build/src/external/src/types.js dependency