CLI tool to bootstrap a node package, allowing it to depend on itself.
Bootstrapping is the concept of building something using the thing
itself as a part of the process. npm packages can't literally add dependencies
on themselves, but
npm-self-link makes use of
npm link to allow
them to do so.
# using yarnyarn add --dev npm-self-link# using npmnpm install --save-dev npm-self-link
Simply run the command in your terminal:
Note: you must run the command again after each
npm install, which does not preserve package links.
or add it to an npm script in your
Generally you should run
npm-self-link prior to any process where your package