You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project that consists of multiple packages and I'm using pnpm. Now I've stumbled across a challenge: I have two packages, both of them are written in Typescript:
A
B (uses most recent version of A)
Both of those packages are published individually. Now I'd like to build (tsc) package A before it is linked, which I could have done by using npm's preinstall hook - but I don't want to compile package A when it is installed in another project. I found this hook in your documentation, but that runs too early (as tsc is not available at that point in time).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a project that consists of multiple packages and I'm using pnpm. Now I've stumbled across a challenge: I have two packages, both of them are written in Typescript:
Both of those packages are published individually. Now I'd like to build (
tsc
) package A before it is linked, which I could have done by using npm'spreinstall
hook - but I don't want to compile package A when it is installed in another project. I found this hook in your documentation, but that runs too early (astsc
is not available at that point in time).Is there any way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions