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.