I used to run this command in yarn version 1 on the command line...
yarn --cwd packages/mypackage/ node --trace-deprecation node_modules/webpack/bin/webpack.js --env env=dev
...so now what would be the equivalent to the previous command when using pnp mode and workspaces in yarn berry where packages are zip files in the .yarn/cache/
folder?
From the project root the path to that same file is now... .yarn/cache/webpack-npm-5.64.0-a89fa9e176-9d32a61d98.zip
and the file relative to within that zip folder is located at /node_modules/webpack/bin/webpack.js
.
So I'm wanting something like the following where @webpack
would resolve to the actual path of the current version as seen above. Isn't there some way to do this???
yarn workspace @something/mypackage node --trace-deprecation .yarn/cache/@webpack/webpack/bin/webpack.js --env env=dev