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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added scope param
  • Loading branch information
Kikobeats committed Apr 4, 2015
commit 0ffe75aa528e2c852a6a5a338b34eda1da3153ea
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module.exports = {
link: function(options, cb) {
return doNpmCommand({
npmCommand: 'link',
scope: options.scope || undefined,
cmdArgs: options.dependencies,
cmdOptions: {
loglevel: options.loglevel || undefined
Expand Down Expand Up @@ -119,6 +120,10 @@ function doNpmCommand(options, cb) {
// console.log('WOULD HAVE RUN::');
// console.log(cmd);

// Setup the scope
if (options.scope)
process.chdir(options.scope);

// Spin up child process
var npm = exec(cmd);
var stderr$npm = npm.stderr;
Expand Down