Skip to content

Commit

Permalink
run-script don't extract
Browse files Browse the repository at this point in the history
  • Loading branch information
jlindley committed Oct 8, 2012
1 parent f7a262c commit 0f7b57b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/node_app.js
Expand Up @@ -48,8 +48,11 @@ exports.NodeApp = function(options){
this.requested = packageJson.engines.node;
}

if(packageJson.scripts) {
this.commands = packageJson.scripts;
var nodeApp = this;
if (packageJson.scripts) {
Object.keys(packageJson.scripts).forEach(function(scriptName){
nodeApp.commands[scriptName] = "npm run-script " + scriptName;
})
}

this.result = semver.maxSatisfying(this.available, this.requested);
Expand Down

0 comments on commit 0f7b57b

Please sign in to comment.