Skip to content

Commit

Permalink
ignoring glob pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Johnston committed Jun 9, 2015
1 parent 9ad0b37 commit 8c0e62b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ export = function(options: { args?: Array<string>; configPath?: string; cwd?: st
ignore = files.filter(function(file) {
return file[0] === '!';
});

configFile.files = include.reduce(function(files, pattern) {
return unique(files.concat(glob.sync(pattern, {
cwd: configDir,
root: root,
ignore: ignore
ignore: ignore.map(file => file.slice(1))
})));
}, []).sort(sort);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsconfig-glob",
"version": "0.1.1",
"version": "0.1.2",
"description": "A lightweight npm package + cli that allows you to specify glob patterns for tsconfig files",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 8c0e62b

Please sign in to comment.