<i>Please</i> do not start publishing raw Typescript into the NPM registry thinking that all the reasons we have not done that in the past do not continue to apply.<p>I shouldn't have to say this, but at least 27 people upvoted this article, so here we are.<p>isolatedDeclarations is most useful for large codebases and other situations where performing a full Typescript compilation is prohibitively expensive. This is not the vast majority of cases. It is the declarations analog of transpileOnly, which skips all type checks and simply strips Typescript's special syntax.<p>The author seems to assume use of JSR, which is an alternative to the NPM registry which automatically compiles Typescript. Not being terribly familiar with it, it's possible this is more relevant to users of that registry, but it's not clear why this is an issue when the registry itself is handling transpiling and declaration generation.<p>EDIT: To be clear, I think it's totally fine to publish your TS source <i>in addition</i> to your JS and d.ts outputs, just don't publish TS only packages, please.