Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

added link command #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

added link command #5

wants to merge 2 commits into from

Conversation

Kikobeats
Copy link

Useful for link a package as global in your system or link locally a global package.

Based in the documentation of the command:

npm link (in package folder)
npm link [@<scope>/]<pkgname>
npm ln (with any of the previous argument usage)

For cover all cases can be necessary a scope param for specify the process.cwd path, but I'm not sure if you are using options.path at this moment for do something like this.

Anyway we can add something like if is present change the scope with process.chdir, exec the command and revert the process.cwd scope as behavior inside doNpmCommand function.

What do you think? :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant