-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--modules-folder with yarn workspaces installs itself #6293
Comments
So you install workspace deps, then |
@pronebird because serverless needs to upload a production only bundle of dependencies to AWS Lambda. That's why I have to use |
I see. I don't think you can run What I would try to do instead is the following:
Note that I use |
Thanks @pronebird. I understand where you are coming from. Unfortunately the step I'm not really sure if this is a yarn issue, or a serverless issue, or both. Based on your advice I created the artifact with a shell script and told serverless to simply use that .zip file instead of generating it: tommedema/serverless-mono-example@e0f97a0 However, for a simple repo with only 2 packages, this takes a whole 60 seconds on my Macbook Pro. The whole yarn install x2 takes too long to do for the whole workspace; that's why I wanted to run it only for this package. |
@pronebird I am now using your workaround but it turns out that there is an issue where the workspace dependencies are ignoring the Should I close this issue and open a new issue? |
I am not familiar with I am not a core contributor or something so I can't say if this issue is worth to keep since I don't have enough inside into how yarn works. But given that yarn relies on the use of symlinks in nohoist configuration, I believe that using |
I created an issue at #6334 |
This is a bug.
Steps to reprodue:
yarn install
cd packages/serverless-random
Actual behavior
prod_node_modules/@org/random
AND a circular reference to the module from which we installed:prod_node_modules/serverless-random
Expected behavior
@org/random
Please mention your node.js, yarn and operating system version.
node 8.11.3, yarn 1.9.4, OSX
The text was updated successfully, but these errors were encountered: