From 3b99760a4250bfd8b357584d2657f6b25a1ce152 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Wed, 10 Sep 2014 12:42:37 -0400 Subject: [PATCH] CB-7330 Don't run check_reqs for bin/create. The create / update script doesn't require any dependencies, so we shouldn't fail without them. --- bin/lib/create.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index c4c6f1b8..0b79533d 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -226,10 +226,6 @@ exports.createProject = function(project_path, package_name, project_name, proje return validatePackageName(package_name) .then(function() { validateProjectName(project_name); - }) - // Check that requirements are met and proper targets are installed - .then(function() { - return check_reqs.run(); }).then(function() { // Log the given values for the project console.log('Creating Cordova project for the Android platform:'); @@ -305,8 +301,7 @@ function extractProjectNameFromManifest(projectPath) { // Returns a promise. exports.updateProject = function(projectPath, shared) { var newVersion = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim(); - // Check that requirements are met and proper targets are installed - return check_reqs.run() + return Q() .then(function() { var projectName = extractProjectNameFromManifest(projectPath); var target_api = check_reqs.get_target();