-
Notifications
You must be signed in to change notification settings - Fork 146
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
Why node_modules isn't linked in? #87
Comments
node_modules
isn't linked in?
Not sure what you are trying to do. What command do you use to add package? |
|
I am having the opposite problem. My yalc installed package includes it's |
I stopped using yalc since yarn workspaces became available. The latter allows you to consume local packages with ease, you just place them in your workspaces directory and hit install. The rest is done for you, and when developing a package and watching for changes, it will trigger a new build in the consuming application without extra steps. I think not many are aware of these amazing capabilities which have saved me what would be otherwise countless hours. In one instance, I was working on integrating six local packages into an application. That would have been a nightmare with yalc. |
So your workspace now pointing to outside of the project, it is something like |
Yalc by default grabs the same content as npm would grab for publishing. |
@wclr I realized that. Btw, using workspaces doesn't mean you have to incorporate workspaces into a repository and version control. You simply create a local root workspace and clone what you need inside it. I'm trying to figure out use-cases for yalc, that don't involve having to watch for changes and such. |
It is just another approach without involving additional tools like yalc.
Well if you're developing some lib as a separate package it is probably supposed to be self-sufficient. You make some consistent changes (e.g. add/change some functionality), and then push/pull them with yalc. So you have an intermediate step of updating your project(s) here, but it only reflects the nature of those changes that they are consistent. The changes you make to a package refer first of all to the package, and only secondarily to projects that depend on it. |
When I add a local package with
yalc
, it links everything but leaves outnode_modules
. I'm guessing it's by-design, but it means I can't spawn a binary file, becausenode_modules
simply isn't there. If I try to use./bin
, I collide into cross-platform issues (works in Linux, fails on Windows, etc').The text was updated successfully, but these errors were encountered: