jest
jest copied to clipboard
Installing the latest version of this package results in yarn warnings about workspaces
Hey team,
I have noticed a warning message stemming from your dependency in our codebase.
Before adding @swc/jest
to our dependencies
yarn install v1.22.17
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
success Already up-to-date.
After including it
yarn install v1.22.17
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] 🔗 Linking dependencies...
warning Workspaces can only be enabled in private projects.
[5/5] 🔨 Building fresh packages...
success Saved lockfile.
I can link similar issues in other places: https://github.com/reduxjs/react-redux/issues/1815 and https://github.com/webpack/webpack-cli/issues/479
We're also seeing this issue.
The issue seems to have appeared in 0.2.21 and comes from adding workspaces
to package.json
in this commit: https://github.com/swc-project/jest/commit/9aba014efa761d1c7b545b0a9f00d7d834e35ba5