Skip to content

Commit

Permalink
revert: build: update TS config to avoid expensive globbing
Browse files Browse the repository at this point in the history
This commit reverts a1c3ee5. The
reverted commit caused linting during Git hooks to fail locally.
  • Loading branch information
kgryte committed Feb 11, 2024
1 parent 45564d8 commit 07a4dcb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 7 additions & 1 deletion etc/eslint/parser-options/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

'use strict';

// MODULES //

var path = require( 'path' );
var rootDir = require( './../../../lib/node_modules/@stdlib/_tools/utils/root-dir' );


// MAIN //

/**
Expand All @@ -34,7 +40,7 @@ var options = {};
* @memberof options
* @type {string}
*/
options.project = './tsconfig.json';
options.project = path.join( rootDir(), 'tsconfig.json' );

/**
* The source type.
Expand Down
8 changes: 6 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@
"types": []
},
"include": [
"**/docs/types/*.ts",
"**/@stdlib/types/*.ts"
"docs/types/index.d.ts",
"docs/types/test.ts",
"lib/node_modules/**/docs/types/index.d.ts",
"lib/node_modules/**/docs/types/test.ts",
"lib/node_modules/**/@stdlib/types/index.d.ts",
"lib/node_modules/**/@stdlib/types/test.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 07a4dcb

Please sign in to comment.