How to access root dependencies in packages' package.json? #3841
-
I installed "scripts": {
"test": "jest",
}, And I get |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, https://yarnpkg.com/getting-started/qa/#how-to-share-scripts-between-workspaces |
Beta Was this translation helpful? Give feedback.
No,
jest
must be a dependency of the script that uses it (we enforce that dependencies are strictly followed, and don't "leak" from one workspace to another). You have some options though, check this doc entry:https://yarnpkg.com/getting-started/qa/#how-to-share-scripts-between-workspaces