diff --git a/tools/upgraders.js b/tools/upgraders.js index 81297911fb..6c43a11d2b 100644 --- a/tools/upgraders.js +++ b/tools/upgraders.js @@ -23,17 +23,31 @@ var maybePrintNoticeHeader = function () { printedNoticeHeaderThisProcess = true; }; -// We don't have any upgraders now, but this is an example of how to write -// some. (It probably makes sense to extract "print this message" or "print -// this message if a package is directly used" into helpers.) var upgradersByName = { "notices-for-0.9.0": function () { maybePrintNoticeHeader(); - console.log( -"0.9.0: Now your app can use packages from the Meteor Package Server!\n" + -" If you were previously using Atmosphere packages with mrt,\n" + -" run 'mrt migrate-app' to start using the same packages in our\n" + -" new system."); + if (fs.existsSync(path.join(project.project.rootDir, 'smart.json'))) { + // Meteorite apps: + console.log( +"0.9.0: Welcome to the new Meteor package system! You can now add any Meteor\n" + +" package to your app (from more than 1800 packages available on the\n" + +" Meteor Package Server) just by typing 'meteor add ', no\n" + +" Meteorite required.\n" + +"\n" + +" It looks like you have been using Meteorite with this project. To\n" + +" migrate your project automatically to the new system:\n" + +" (1) upgrade your Meteorite with 'npm install -g meteorite', then\n" + +" (2) run 'mrt migrate-app' inside the project.\n" + +" Having done this, you no longer need 'mrt' and can just use 'meteor'.\n"); + } else { + // Non-Meteorite apps: + console.log( +"0.9.0: Welcome to the new Meteor package system! You can now add any Meteor\n" + +" package to your app (from more than 1800 packages available on the\n" + +" Meteor Package Server) just by typing 'meteor add '. Check\n" + +" out the available packages by typing 'meteor search ' or by\n" + +" visiting atmospherejs.com.\n"); + } // How to do package-specific notices: // if (_.has(project.project.getConstraints(), 'accounts-ui')) { // console.log(