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
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 want to reuse a script across different packages similar to how it is done in https://yarnpkg.com/getting-started/qa/#how-to-share-scripts-between-workspaces, but instead of the directory I want to use the package name. Is there a way to do it?
For example I'm using turborepo for running a script, but same could be for yarn workspaces plugin:
NOTE
PACKAGE_NAME
would be a desired env variable similar to INIT_CWDExample invocation:
yarn packages/test-package g:dev
Using INIT_CWD here doesn't work because we need the actual package name not the directory
Reference:
Beta Was this translation helpful? Give feedback.
All reactions