Use a duplex instead of a writable stream (#13)

To make it compatible with sindresorhus’ gulp-typescript