update the versions before running list

This commit is contained in:
ekatek
2014-04-04 17:40:11 -07:00
parent 016915f6f9
commit 36a1d4edcc

View File

@@ -835,12 +835,16 @@ main.registerCommand({
}, function (options) {
var items = [];
if (options.using) {
// Generate a package loader for this project. This will also compute the
// nessessary versions and write them to disk.
project.generatePackageLoader(options.appDir);
var packages = project.getDirectDependencies(options.appDir);
_.each(packages.appDeps, function (version, name) {
var versionInfo = catalog.getVersion(name, version);
if (!versionInfo) {
process.stderr.write("Cannot process package list. Unknown: " + name +
" at version " + version);
" at version " + version + "\n");
process.exit(1);
}
items.push({ name: name, description: versionInfo.description });
});