From def515dc6f9feab2d915b9dd8534c09cb281a6f7 Mon Sep 17 00:00:00 2001 From: guybedford Date: Wed, 25 May 2016 14:22:15 +0200 Subject: [PATCH] support --dev, --peer for jspm link --- cli.js | 2 +- lib/link.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index dadb79831..cfb588cfe 100755 --- a/cli.js +++ b/cli.js @@ -491,7 +491,7 @@ process.on('uncaughtException', function(err) { break; case 'link': - options = readOptions(args, ['force', 'yes', 'quick']); + options = readOptions(args, ['force', 'yes', 'quick', 'dev', 'peer']); if (options.yes) ui.useDefaults(); diff --git a/lib/link.js b/lib/link.js index 173c1dc6f..1df6a990b 100644 --- a/lib/link.js +++ b/lib/link.js @@ -192,7 +192,7 @@ exports.link = function(dir, name, options) { var installName = alias || pkg.package.split('/').pop(); config.loader.baseMap[installName] = pkg; // NB options.quick for linked should still link, but just not do more than dependency checks - return install.install(installName, pkg.exactName, { quick: options.quick, force: options.force }); + return install.install(installName, pkg.exactName, { quick: options.quick, force: options.force, dev: options.dev, peer: options.peer }); }) .then(function(aborted) { if (!aborted)