Add option for type checking #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "typecheck-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The watch script reports diagnostic errors, but the build script can silently pass.
This adds an option,
typeCheck, to theBuildOptionsfor parity. It's opt-in, to allow it to be backwards compatible.We use this project (alongside @prosemirror/buildhelper) to build a module containing our document's schema. We were surprised to see a type error sneak through the other day.
If this is unwanted, let me know and we'll pursue something like tsdown instead.
Thanks, this looks useful. Do you want me to cut a release or do you have other patches to submit?
Nah, that was it for this repo. Do you think it's something that could be opt-in for pm-buildhelper, or do you typically rely on editor/ide types in your workflow?
I've tagged a 1.2.0.
Indeed, I rely on watch output and IDE errors in my workflow, and want the rebuild triggered by
npm preparewhen I publish to be as fast as possible.Makes sense. Would you accept an opt-in patch for @prosemirror/buildhelper? If not, we can continue using our fork.