var exec = require('./exec').exec;
var findup = require('findup-sync');
var pkg = require(findup('./package.json'));
var bowerPkg = require(findup('./bower.json'));

module.exports = {
    register : function() {
        return exec('bower', ['register', bowerPkg.name, pkg.repository.url]);
    },

    install : function() {
        return exec('bower', ['install']);
    }
};
@@ -65,16 +65,72 @@
 sync');%0A
+%0Amodule.exports = %7B%0A    register : function() %7B%0A        
 var pkg 
@@ -166,16 +166,24 @@
 son'));%0A
+        
 var bowe
@@ -225,56 +225,8 @@
 '));
-%0A%0Amodule.exports = %7B%0A    register : function() %7B
 %0A   

move bower package dependency into the bower function