A monorepo for testing local changes to zigbee2mqtt and herdsman #25105
deviantintegral
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Looks good! Currently I'm using |
Beta Was this translation helpful? Give feedback.
1 reply
-
I noticed that vite seems to hang in Rosetta compiling the frontend. I've run into issues with qemu before, but not rosetta. I ended up just pushing to an x64 host instead, but if anyone else runs into it and solves it I'd love to hear how! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Over the past few years, I've often found myself wanting to build changes I've made to zigbee2mqtt into a docker container I can run with my real home network. I had some basic hacks that worked with
npm
andnpm link
, but those all broke with the switch to pnpm.Since the project is using pnpm now, I've created a repository that configures each of them inside a pnpm workspace. This lets you:
https://github.com/deviantintegral/zigbee2mqtt-dev-repo
Unfortunately, I wasn't able to make this work with the latest stable version of zigbee2mqtt. There's code in zigbee2mqtt that interacts with package.json, and I assume that was changed in the dev branch. I don't think it's worth fixing at this point - if this repo is of interest to you, you should probably be testing the upcoming 2.0 release anyways!
This does have me thinking that perhaps converting to a monorepo for these 4 packages is a good solution. Certainly the frontend is coupled to zigbee2mqtt pretty tightly, given it's an external project that is then consumed back into zigbee2mqtt. But I'd love to hear from others what sort of workflow they're using if this one isn't the best!
Beta Was this translation helpful? Give feedback.
All reactions