mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fixing the plugin dependency handling
This commit is contained in:
@@ -185,15 +185,19 @@ _.extend(Catalog.prototype, {
|
||||
if (!constraint.weak) {
|
||||
deps.push(constraint.packageName);
|
||||
}
|
||||
constr.push(constraint);
|
||||
if (constraint.version) {
|
||||
constr.push(constraint);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
_.each(constraints, function (constraint, packageName) {
|
||||
deps.push(packageName);
|
||||
var utils = require('./utils.js');
|
||||
var vers = utils.parseConstraint(constraint);
|
||||
vers['packageName'] = packageName;
|
||||
constr.push(vers);
|
||||
if (constraint) {
|
||||
var utils = require('./utils.js');
|
||||
var vers = utils.parseConstraint(constraint);
|
||||
vers['packageName'] = packageName;
|
||||
constr.push(vers);
|
||||
}
|
||||
});
|
||||
}
|
||||
// The constraint solver has been initialized, so we can just call it.
|
||||
|
||||
@@ -937,7 +937,7 @@ compiler.checkUpToDate = function (packageSource, unipackage) {
|
||||
// For each plugin, check that the resolved build-time deps for
|
||||
// that plugin match the unipackage's build time deps for it.
|
||||
var packageLoaderForPlugin = new PackageLoader({
|
||||
versions: buildTimeDeps.pluginDependencies
|
||||
versions: buildTimeDeps.pluginDependencies[pluginName]
|
||||
});
|
||||
var unipackagePluginDeps = unipackage.buildTimePluginDependencies[pluginName];
|
||||
if (! unipackagePluginDeps ||
|
||||
|
||||
Reference in New Issue
Block a user