According to the documentation here, npm prepare is run before publishing but also while installing the project, resulting in tsc: not found if typescript is not installed globally.
I suggest using prepublishOnly if possible to circumvent the issue. I could open a PR for it if you'd like.
According to the documentation here,
npm prepare
is run before publishing but also while installing the project, resulting intsc: not found
if typescript is not installed globally.I suggest using
prepublishOnly
if possible to circumvent the issue. I could open a PR for it if you'd like.