I have written a React hook in Typescript and would like to publish it to npm, but I can\'t seem to get the build configuration correct. I have read the recommendations in t