Sync your own npm library directly into the package which depends on it. This is like npm link
but no symlink and temporally.
Devsync might be useful in such a case:
- You have a main application
your-app
your-app
has a dependency toyour-library
- Adds features, or fixes bug on
your-library
- Needs to update
your-library
inyour-app
locally, withoutgit push
ornpm publish
via GitHub
$ npm install -g cognitom/devsync
Go to your-library
directory and run devsync
:
$ cd ~/Git/your-library
$ devsync
The example above assumes that you have a directory structure like this:
~/Git/your-app
: Your main application~/Git/your-library
: Your library internally used inyour-app
If you're working on the project at Desktop
, you could devsync
like this:
$ cd ~/Git/your-library
$ devsync -t ~/Desktop/your-temporary-project
To watch and automatically devsync
, -w
flag would be useful:
$ cd ~/Git/your-library
$ devsync -w
const
devsync = require('devsync')
devsync({
cwd: 'path/to/your-library',
target: 'path/to/your-app'
})