Skip to content

Commit

Permalink
feat(tsfmt): drop tsconfig.json's filesGlob support, it is unofficial…
Browse files Browse the repository at this point in the history
… field.
  • Loading branch information
vvakame committed Feb 27, 2017
1 parent a180905 commit 3b0d38f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as ts from "typescript";

import * as expand from "glob-expand";

import * as fs from "fs";
import * as path from "path";

Expand Down Expand Up @@ -44,7 +42,6 @@ export function readFilesFromTsconfig(configPath: string): string[] {

interface TsConfigJSON {
files?: string[];
filesGlob?: string[];
include?: string[];
exclude?: string[];
}
Expand All @@ -56,8 +53,6 @@ export function readFilesFromTsconfig(configPath: string): string[] {
} else if (tsconfig.files) {
let files: string[] = tsconfig.files;
return files.map(filePath => path.resolve(tsconfigDir, filePath));
} else if (tsconfig.filesGlob) {
return expand({ filter: "isFile", cwd: tsconfigDir }, tsconfig.filesGlob);
} else if (tsconfig.include || tsconfig.exclude) {
return tsMatchFiles(tsconfig.exclude || [], tsconfig.include || []);
} else {
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@
},
"dependencies": {
"commandpost": "^1.0.0",
"editorconfig": "^0.13.2",
"glob-expand": "^0.2.1"
"editorconfig": "^0.13.2"
},
"peerDependencies": {
"typescript": "^2.0.6 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev"
},
"devDependencies": {
"@types/glob-expand": "^0.0.30",
"@types/mkdirp": "^0.3.29",
"@types/mocha": "^2.2.33",
"@types/node": "^7.0.5",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"es2017"
],
"types": [
"node",
"mocha"
],
"noImplicitAny": true,
Expand Down

0 comments on commit 3b0d38f

Please sign in to comment.