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
What's the nx way to "prepare dependencies" of a package?
I want to keep my existing yarn scripts, e.g. "start": "next dev" but want to ensure that all the dependencies of the current package are built. So something like "start": "nx prepare @scope/app:start && next dev". Technically I expect it to satisfy the environment according to the defined targetDependencies of the current script, without running the script on the current package.
This would mostly fit uncachable scripts like starting a server or running ad-hoc lint/test with specific files, or test watchers.
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
-
What's the nx way to "prepare dependencies" of a package?
I want to keep my existing yarn scripts, e.g.
"start": "next dev"
but want to ensure that all the dependencies of the current package are built. So something like"start": "nx prepare @scope/app:start && next dev"
. Technically I expect it to satisfy the environment according to the definedtargetDependencies
of the current script, without running the script on the current package.This would mostly fit uncachable scripts like starting a server or running ad-hoc lint/test with specific files, or test watchers.
Beta Was this translation helpful? Give feedback.
All reactions