lib/bundleLocator.js
function (baseDirectory, name, version, pkg, options) {
        var seed;
        seed = {
            baseDirectory: baseDirectory,
            name: name,
            version: version
        };
        if (pkg) {
            seed.name = (pkg.locator && pkg.locator.name ? pkg.locator.name : pkg.name);
            seed.version = pkg.version;
            seed.options = pkg.locator;
            seed.pkg = pkg;
        }
        if (options) {
            if (seed.options) {
                // merge options under seed.options
                mix(seed.options, options);
            } else {
                seed.options = options;
            }
        }
        return seed;
    }
function (baseDirectory, name, version, pkg, options) {
        var seed;
        seed = {
            baseDirectory: baseDirectory,
            name: name,
            version: version
        };
        if (pkg) {
            seed.name = (pkg.locator && pkg.locator.name ? pkg.locator.name : pkg.name);
            seed.version = pkg.version;
            seed.options = pkg.locator;
            seed.pkg = pkg;
        }
        if (options) {
            if (seed.options) {
                // merge options under seed.options
                mix(seed.options, options);
            } else {
                seed.options = options;
            }
        }
        return seed;
    }
Creates the seed of a potential bundle.

The seed includes:
<dl>
<dt> baseDirectory {string} </dt>
<dd> The directory of the bundle. </dd>
<dt> name {string} </dt>
<dd> The name of the bundle. </dd>
<dt> version {string} </dt>
<dd> The version of the bundle. </dd>
<dt> npmDepth {integer} </dt>
<dd> The depth in the NPM package dependency tree. </dd>
<dt> options {object} </dt>
<dd> Options for the bundle, taken in part from the `"locator"` section of `package.json` </dd>
</dl>
@private
@method _makeBundleSeed
@param {string} baseDirectory Full path to the bundle.
@param {string} name The name of the bundle.
Might be overrriden by the name in package.json (if it exists).
@param {string} version The version to use if not specified in the package.json.
Might be overriden by the version in package.json (if it exists).
@param {object} [pkg] Contents of the bundles package.json.
@param {object} [options] Additional options to apply. Lower priority
than those found in package.json.
@return {object} The bundle seed, as described above.