Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

api change for globSync

  • Loading branch information...
commit dcebfa9efd829557b2a2ef386437f06f0afabf44 1 parent 7678d78
@irickt authored
Showing with 5 additions and 5 deletions.
  1. +4 −4 lib/rules.js
  2. +1 −1  src/rules.coffee
View
8 lib/rules.js
@@ -11,7 +11,7 @@
_ref = require('./dag'), Graph = _ref.Graph, Node = _ref.Node, Arc = _ref.Arc, NodeList = _ref.NodeList;
_ = require('underscore');
assert = require('assert');
- globSync = require('glob').globSync;
+ globSync = require('glob').sync;
fs = require('fs');
RuleGraph = (function() {
function RuleGraph() {
@@ -40,7 +40,7 @@
if (globbed.length > 0) {
return globbed;
} else {
- return void 0;
+ return;
}
} else {
return prereq;
@@ -114,11 +114,11 @@
return Recipe;
})();
RecipeNode = (function() {
- __extends(RecipeNode, Node);
function RecipeNode(name, recipe) {
this.name = name;
this.recipe = recipe;
}
+ __extends(RecipeNode, Node);
RecipeNode.prototype.equals = function(node) {
return RecipeNode.__super__.equals.call(this, node) && node instanceof RecipeNode;
};
@@ -187,11 +187,11 @@
return RecipeNode;
})();
FileNode = (function() {
- __extends(FileNode, Node);
function FileNode(name) {
this.name = name;
this.refresh();
}
+ __extends(FileNode, Node);
FileNode.prototype.equals = function(node) {
return FileNode.__super__.equals.call(this, node) && node instanceof FileNode;
};
View
2  src/rules.coffee
@@ -21,7 +21,7 @@
{ Graph, Node, Arc, NodeList } = require './dag'
_ = require 'underscore'
assert = require 'assert'
-{ globSync } = require 'glob'
+globSync = require( 'glob').sync
fs = require 'fs'
class RuleGraph extends Graph
Please sign in to comment.
Something went wrong with that request. Please try again.