Skip to content

Commit 3b0d38f

Browse files
committed
feat(tsfmt): drop tsconfig.json's filesGlob support, it is unofficial field.
1 parent a180905 commit 3b0d38f

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

lib/utils.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import * as ts from "typescript";
22

3-
import * as expand from "glob-expand";
4-
53
import * as fs from "fs";
64
import * as path from "path";
75

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

4543
interface TsConfigJSON {
4644
files?: string[];
47-
filesGlob?: string[];
4845
include?: string[];
4946
exclude?: string[];
5047
}
@@ -56,8 +53,6 @@ export function readFilesFromTsconfig(configPath: string): string[] {
5653
} else if (tsconfig.files) {
5754
let files: string[] = tsconfig.files;
5855
return files.map(filePath => path.resolve(tsconfigDir, filePath));
59-
} else if (tsconfig.filesGlob) {
60-
return expand({ filter: "isFile", cwd: tsconfigDir }, tsconfig.filesGlob);
6156
} else if (tsconfig.include || tsconfig.exclude) {
6257
return tsMatchFiles(tsconfig.exclude || [], tsconfig.include || []);
6358
} else {

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@
3232
},
3333
"dependencies": {
3434
"commandpost": "^1.0.0",
35-
"editorconfig": "^0.13.2",
36-
"glob-expand": "^0.2.1"
35+
"editorconfig": "^0.13.2"
3736
},
3837
"peerDependencies": {
3938
"typescript": "^2.0.6 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev"
4039
},
4140
"devDependencies": {
42-
"@types/glob-expand": "^0.0.30",
4341
"@types/mkdirp": "^0.3.29",
4442
"@types/mocha": "^2.2.33",
4543
"@types/node": "^7.0.5",

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"es2017"
99
],
1010
"types": [
11+
"node",
1112
"mocha"
1213
],
1314
"noImplicitAny": true,

0 commit comments

Comments
 (0)