Closed kevincox closed 3 years ago
Hi, build instructions are here.
Some dependencies are shared between the extension and the app in the root directory: https://github.com/hensm/fx_cast/blob/c45a45616abfda85b4e404dbf059fb11a3914a2c/package.json#L32
I'm trying to package it for offline building and it makes it a bit difficult as I basically need to merge the two sets of dependencies. I'm also surprised that you haven't run into versioning issues with two separate modules. I guess I'll try to merge the both of them but this is an unusual approach as far as I am aware.
Yeah, it's not ideal. If you have any suggestions, I'd be happy to make changes to make this more straightforward.
I'm not really sure. I would just think to specify the requirements in the subdirectories instead of having any in the root. It may cause a bit of duplication but that is probably not an issue can be advantageous if you have a reason for the difference between the different components.
I did mange to get it working. For context I was trying to update the Nix package for the bridge: https://github.com/NixOS/nixpkgs/pull/121963. It is a bit weird with the dual package lists but it isn't unmanageable.
Okay, I think what I'll do is just put all the app dependencies in the app subdirectory so that can be built fully self-contained and keep a few shared dependencies in root for some of the other stuff like linting/testing.
Thanks! I've updated the PR and it looks much cleaner.
Description https://github.com/hensm/fx_cast/blob/c45a45616abfda85b4e404dbf059fb11a3914a2c/app/package.json doesn't declare
fs-extra
as a dependency but it is used https://github.com/hensm/fx_cast/blob/c45a45616abfda85b4e404dbf059fb11a3914a2c/app/bin/build.js#L3.Steps to reproduce
cd app
npm build
Expected behaviour It builds.
Logs