-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
good first issueGood for newcomersGood for newcomerstech debtNon-critical, invisible code issues that ought to be addressedNon-critical, invisible code issues that ought to be addressed
Description
I've just added typesync, which is a super cool package that ensures you have matching @types packages for all your packages.
The only problem is that in pnpm, we have to run it manually.
One day, I'd like to be able to automatically run typesync after pnpm add, pnpm remove and pnpm update (but not pnpm install).
Typesync provides docs to autorun in npm, but this simply doesn't work in pnpm
Options and ideas:
pnpmdoes provide some postinstall hooks through a.pnnpmfile.cjs, but a) it'll run oninstallas well asadd, and b) they don't let do you very much. We can't run pnpm commands from these hooks, we can only hack the lockfilepnpmhas an option to enable npm-stylepre/postscript hooks. If we enable this, we could probably addpostadd,postremoveandpostupdatescripts. But I think you can only do this onpnpm run, and it has to be passed into the CLI.- We could use a git hook and run typesync before committing or pushing ,failing if types are not synced. But this is dogmatic and annoying.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerstech debtNon-critical, invisible code issues that ought to be addressedNon-critical, invisible code issues that ought to be addressed
Type
Projects
Status
Icebox