Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added a require for possible global installation

  • Loading branch information...
commit 6781a67f614af65ce669d1dfd24f27b15c9c4272 1 parent 77dc2c5
@diervo authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 source/lib/management/commands/shake.js
View
13 source/lib/management/commands/shake.js
@@ -10,11 +10,16 @@ var path = require('path'),
Shaker = null;
try {
- var shaker_path = path.join(process.cwd(),'node_modules','shaker');
- Shaker = require(shaker_path).Shaker;
+ Shaker = require('shaker').Shaker;
}
-catch (exception) {
- utils.error('Please install the shaker package from the npm registry.');
+catch (exception){
+ try{
+ var shaker_path = path.join(process.cwd(),'node_modules','shaker');
+ Shaker = require(shaker_path).Shaker;
+
+ }catch(exception){
+ utils.error('Please install the shaker package from the npm registry.');
+ }
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.