Permalink
Browse files

[ux] [minor] Updating copy on package update messaging

  • Loading branch information...
1 parent c12c0ec commit fbf55d26fc3d2e53f7f43f009e5aae353cf54046 @Marak Marak committed Aug 19, 2012
Showing with 5 additions and 7 deletions.
  1. +5 −7 lib/jitsu/package.js
View
@@ -434,8 +434,8 @@ package.updateTarball = function (version, pkg, existing, firstSnapshot, callbac
// If the existing version is greater than the version in the
// package.json file on disk, update it and then write back to disk.
//
- jitsu.log.warn('Local version appears to be old');
- jitsu.log.warn('Your ' + 'package.json'.grey + ' version will be incremented for you automatically');
+ jitsu.log.warn('Local package version appears to be old');
+ jitsu.log.warn('The ' + 'package.json'.grey + ' version will be incremented automatically');
//
// Check for release args then .jitsuconf or default to 'build'
//
@@ -670,17 +670,15 @@ function tryAnalyze (target, dir, callback) {
}
function policeDependencies (pkg) {
-
dependencies = pkg.dependencies;
-
for (var key in dependencies) {
if (dependencies[key].toString().match(/(\*)/)) {
- jitsu.log.warn('Using \'*\' as version for dependencies may eventually cause issues.');
- jitsu.log.warn('Please use specific versions for dependencies to avoid future problems.');
+ jitsu.log.warn("Using '" + "*".magenta + "' as a version for dependencies may eventually cause issues");
+ jitsu.log.warn('Use specific versions for dependencies to avoid future problems');
+ jitsu.log.warn('See: ' + 'http://package.json.jit.su'.grey + ' for more information');
return false;
}
}
-
}
function fillPackage (base, dir, callback) {

0 comments on commit fbf55d2

Please sign in to comment.