Let's assume I have a project structure as follows:
packages/
core/
client1/
client2/
package.json
All the subpackages are supposed to be published to a public registry, but haven't been published yet. Client packages link core package as a local dependency (defined as file:../core
in their package.json files). Npm documentation suggests using such dependencies locally, which seems logical enough. But is it possible to install a package from local dependency in one case and from registry in another case, and what's the correct way to handle this in JS world?