-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
chore: fix package link script issues #6251
Conversation
- npm install official packages after unlink - don't unlink unless it is truly linked - require package namespace for both commands Signed-off-by: Eric Dobbertin <[email protected]>
I'd like to also figure out a way to maintain the other links when unlinking one, but I think we'd have to create a file to track the links and re-create them all in the unlink script after unlinking. In other words, essentially write our own version of the NPM RFC proposal. A bigger concern is that I am seeing that often, after I link a second package, the code from the first package is no longer executing, even though the symlink is still there and the symlinked files have the changes. It's like there's a different version of the package also installed somewhere in the |
My "bigger concern" comment is captured in #6250, and I think I actually fixed it by changing |
Signed-off-by: Eric Dobbertin <[email protected]>
OK I think I encountered some of what is being discussed in #6250 today so I'm going to test this branch and see if it helps. One thing I'd like to confirm about this tooling, is it:
or is this package-link workflow designed to work without an extra docker volume mount for the api-plugin you're working on? |
When testing originally, I did not have to add the additional volume mount. I followed the example workflow here and was able to link and unlink: #6238 I only did a single time, so did not run into the issues of #6250 |
I’m going to hold off on the 3.8.0 release until this is merged. The only big change in that release is the original PR which this current PR is fixing, so makes sense to wait. cc @mdelreal |
I've also tested this out and it seems to be good. @focusaurus have you had a chance to try it out? |
Yeah I've used this a few times. I'm still not 100% clear on the workflow and the various levels of technical challenges and solutions that are in play here, but it seems to work OK for me. |
Resolves #6250
Impact: minor
Type: chore
Breaking changes
The
package-link
andpackage-unlink
commands now need the full package name, including@reactioncommerce/
org prefix.Testing
Try it