From a1738b37f7575c5c3774217695718b9a79a448c9 Mon Sep 17 00:00:00 2001 From: Joseph Orbegoso Pea Date: Fri, 10 Jul 2015 20:49:52 -0700 Subject: [PATCH] Improve docs. --- tools/package-source.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/package-source.js b/tools/package-source.js index ddac338c59..f8ae657f14 100644 --- a/tools/package-source.js +++ b/tools/package-source.js @@ -743,11 +743,15 @@ _.extend(PackageSource.prototype, { * @summary Specify which [NPM](https://www.npmjs.org/) packages * your Meteor package depends on. * @param {Object} dependencies An object where the keys are package - * names and the values are version numbers in string form. - * You can only depend on exact versions of NPM packages. Example: + * names and the values are version numbers in string form or URLs to a + * git commit by SHA. You can only depend on exact versions of NPM + * packages. Example: * * ```js - * Npm.depends({moment: "2.8.3"}); + * Npm.depends({ + * moment: "2.8.3", + * async: "https://github.com/caolan/async/archive/71fa2638973dafd8761fa5457c472a312cc820fe.tar.gz" + * }); * ``` * @locus package.js * @memberOf Npm