-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Improve local js dev experience #1914
Comments
This problem has been signalled to The main option is to use yalc as a devDependency, which fakes Since we rely on the parent project ( |
However, there doesn't seem to be an automated way to do something like The other option is to use yarn workspaces for all gem/npm packages. This would mean bringing back into the main repo the separate gems, and host them as sub-directories. ActionCable (both the actioncable gem and the actioncable npm package) has its source code stored as a workspace under the main But bringing back all the gems' source code into the So I'll proceed with |
I tried an alternative: inline all dependencies using |
As for running |
So I just tested with The process (very manual for now): In the gem/npm package, build and publish locally:
In the upstream package:
To automate this all, |
I transferred this issue from the old |
Currently, the instructions for local js development instruct to use
yarn link
.However,
yarn link
doesn't install package dependencies like ayarn add
does, causing us to require to temporarilyyarn add
each of the dependencies of an npm package we work on in the parent project from which we test our npm package.The text was updated successfully, but these errors were encountered: