Can I sync injected workspace dependencies manually #9630
Closed
benkroeger
started this conversation in
General
Replies: 1 comment
-
this is more or less a duplicate of #3938.I found my answer in this comment |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using tsc-watch to automatically restart my app package in a pnpm monorepo to restart the server when a source-file of any of the app-package or depended-upon other packages in the monorepo changes. This is made possible via tsconfig references to composabale configs in other libs (i.e. app's tsconfig references all tsconfigs from depended-upon packages in the monorepo).
If I use the
injectWorkspacePackages
option (because I am building my app in a Dockerfile withdeploy
) andsyncInjectedDepsAfterScripts
that is fine for manual builds - but I need to trigger the sync everytime tsc detects a change in any of the referenced packages in the monorepo - which doesn't run through the lifecycle management of pnpm.I'd also go for only activating
injectWorkspacePackages
when building the Docker image (i.e. executing thedeploy
command) but that keeps failing because of a missmatch in mypnpm-lock.yaml
options (which then wouldn't have theinjectWorkspacePackages
option by default).Can anyone relate / does have a solution here?
Beta Was this translation helpful? Give feedback.
All reactions