Skip to content

Commit a1c3ee5

Browse files
committed
build: update TS config to avoid expensive globbing
1 parent 29e4c99 commit a1c3ee5

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

etc/eslint/parser-options/typescript.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818

1919
'use strict';
2020

21-
// MODULES //
22-
23-
var path = require( 'path' );
24-
var rootDir = require( './../../../lib/node_modules/@stdlib/_tools/utils/root-dir' );
25-
26-
2721
// MAIN //
2822

2923
/**
@@ -40,7 +34,7 @@ var options = {};
4034
* @memberof options
4135
* @type {string}
4236
*/
43-
options.project = path.join( rootDir(), 'tsconfig.json' );
37+
options.project = './tsconfig.json';
4438

4539
/**
4640
* The source type.

tsconfig.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,8 @@
3434
"types": []
3535
},
3636
"include": [
37-
"docs/types/index.d.ts",
38-
"docs/types/test.ts",
39-
"lib/node_modules/**/docs/types/index.d.ts",
40-
"lib/node_modules/**/docs/types/test.ts",
41-
"lib/node_modules/**/@stdlib/types/index.d.ts",
42-
"lib/node_modules/**/@stdlib/types/test.ts"
37+
"**/docs/types/*.ts",
38+
"**/@stdlib/types/*.ts"
4339
],
4440
"exclude": [
4541
"node_modules"

0 commit comments

Comments
 (0)