Oh ok, so do you do that once, or do you add it to the compiler options when you do dfx build? Does moc have a config file that it adds the packages to?
I think using the packtool field will mean you don’t need to change to a custom canister type.
Whether you’re using Vessel or not, it looks like you can add or edit the packtool field under build to return the directories you want to be loaded as packages.
If you’re already using Vessel you’d still need to use vessel sources and either add a new package to your vessel.dhall file or somehow manually add --package shared shared.
Yeah the vessel solution isn’t ideal as we have a lot of generated files and tend to move things around. Committing the local repository and then pulling it on each change would fix it but is a bit unwieldy.
We’re working on a solution, will let you know what we end up doing. Would love it eventually if you could include local files with an absolute path but know its not very important in the whole scheme of things.