Reputation: 742
E.g. I have created a library, but it only exists only on my local machine. I want to create a separate app, which uses this library. How can I do this with pub?
Upvotes: 2
Views: 1392
Reputation: 30212
This can be achieved with path
:
dependencies:
transmogrify:
path: /Users/me/transmogrify
From the documentation:
This says the root directory for transmogrify is /Users/me/transmogrify. When you use this, pub will generate a symlink directly to the lib directory of the referenced package directory. Any changes you make to the dependent package will be seen immediately. You don’t need to run pub every time you change the dependent package.
Upvotes: 5