-
Notifications
You must be signed in to change notification settings - Fork 179
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
test: use workspace package versions #261
test: use workspace package versions #261
Conversation
Looks a little tricky, how do other people do for their monorepo projects? |
This comment was marked as outdated.
This comment was marked as outdated.
3a5112c
to
1a6180e
Compare
This comment was marked as outdated.
This comment was marked as outdated.
It's unlucky that npm doesn't support such syntax and standards if it is true. I personally recommend CI to cover npm install, because npm is always the most basic compatibility object, although in many cases pnpm can bring significant optimization effects. But if this update can solve the headaches you guys have been experiencing these days, I think we can just move forward. Cheers! 🍻 |
Does this mean that |
This comment was marked as outdated.
This comment was marked as outdated.
Important
Best would probably be real version specifiers like e.g. |
44f2aec
to
2551d95
Compare
I started using
So not safe to merge yet? |
I suddenly remembered how I handled such workspace case many years ago. It works before, but I'm not sure if it will help with our current situation.. // package.json
// "dependencies": {
"react-drag-sizing": "file:packages/react-drag-sizing",
"jsdom-innertext": "file:packages/jsdom-innertext",
"jsdom-selection": "file:packages/jsdom-selection", UPDATE: Here cd nuejs/nue
rm -rf node_modules
npm install
ls -l node_modules | grep nue
>>
lrwxr-xr-x 1 fritx staff 16 4 17 12:33 nue-glow -> ../packages/glow
lrwxr-xr-x 1 fritx staff 17 4 17 12:33 nuejs-core -> ../packages/nuejs
lrwxr-xr-x 1 fritx staff 18 4 17 12:33 nuekit -> ../packages/nuekit
lrwxr-xr-x 1 fritx staff 19 4 17 12:33 nuemark -> ../packages/nuemark
ls -l packages/nuekit/node_modules | grep nue
>>
lrwxr-xr-x 1 fritx staff 14B 4 17 12:33 nue-glow -> ../../nue-glow
lrwxr-xr-x 1 fritx staff 14B 4 17 12:33 nuemark -> ../../nue-mark But I'm not sure if the dependency version is gonna be replaced properly when |
@tipiirai that was only, because I (tried @fritx The In conclusion, I think, the Edit: I'm done now |
fe18a72
to
12597a0
Compare
12597a0
to
f0c7a91
Compare
Makes sense. Thank you! |
Previous code description
Maybe I have it completely wrong, and the workspace versions are already used on tests, but I'm not too sure about that.
We will have to check, if there isn't a better way. Because, this behavior should also go for local development... (but i think the preinstall script of the base workspace was not enough, because the subpackages get initialized before the preinstall script?)
What I also dislike with this approach is, that the package files are changed and accidental commit to git can happen easily...
There's also the problem with the handling of releases.. There, proper versions should be used, but when some get updated.... We'll, it sure. Lost my train of thought...