@typescript-eslint/typescript-estree
Advanced tools
Comparing version 8.2.1-alpha.25 to 8.2.1-alpha.26
@@ -10,3 +10,3 @@ "use strict"; | ||
const debug_1 = __importDefault(require("debug")); | ||
const globby_1 = require("globby"); | ||
const fast_glob_1 = require("fast-glob"); | ||
const is_glob_1 = __importDefault(require("is-glob")); | ||
@@ -36,11 +36,10 @@ const shared_1 = require("../create-program/shared"); | ||
} | ||
const projectFolderIgnoreList = (options.projectFolderIgnoreList ?? ['**/node_modules/**']) | ||
.reduce((acc, folder) => { | ||
const projectFolderIgnoreList = (options.projectFolderIgnoreList ?? ['**/node_modules/**']).reduce((acc, folder) => { | ||
if (typeof folder === 'string') { | ||
acc.push(folder); | ||
acc.push( | ||
// prefix with a ! for not match glob | ||
folder.startsWith('!') ? folder : `!${folder}`); | ||
} | ||
return acc; | ||
}, []) | ||
// prefix with a ! for not match glob | ||
.map(folder => (folder.startsWith('!') ? folder : `!${folder}`)); | ||
}, []); | ||
const cacheKey = getHash({ | ||
@@ -70,9 +69,14 @@ project: sanitizedProjects, | ||
const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project)); | ||
let globProjectPaths = []; | ||
if (globProjects.length > 0) { | ||
// Although fast-glob supports multiple patterns, fast-glob returns arbitrary order of results | ||
// to improve performance. To ensure the order is correct, we need to call fast-glob for each pattern | ||
// separately and then concatenate the results in patterns' order. | ||
globProjectPaths = globProjects.flatMap(pattern => (0, fast_glob_1.sync)(pattern, { | ||
cwd: options.tsconfigRootDir, | ||
ignore: projectFolderIgnoreList, | ||
})); | ||
} | ||
const uniqueCanonicalProjectPaths = new Map(nonGlobProjects | ||
.concat(globProjects.length === 0 | ||
? [] | ||
: (0, globby_1.sync)([...globProjects, ...projectFolderIgnoreList], { | ||
cwd: options.tsconfigRootDir, | ||
dot: true, | ||
})) | ||
.concat(globProjectPaths) | ||
.map(project => [ | ||
@@ -79,0 +83,0 @@ (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir)), |
{ | ||
"name": "@typescript-eslint/typescript-estree", | ||
"version": "8.2.1-alpha.25", | ||
"version": "8.2.1-alpha.26", | ||
"description": "A parser that converts TypeScript source code into an ESTree compatible form", | ||
@@ -57,6 +57,6 @@ "files": [ | ||
"dependencies": { | ||
"@typescript-eslint/types": "8.2.1-alpha.25", | ||
"@typescript-eslint/visitor-keys": "8.2.1-alpha.25", | ||
"@typescript-eslint/types": "8.2.1-alpha.26", | ||
"@typescript-eslint/visitor-keys": "8.2.1-alpha.26", | ||
"debug": "^4.3.4", | ||
"globby": "^11.1.0", | ||
"fast-glob": "^3.3.2", | ||
"is-glob": "^4.0.3", | ||
@@ -63,0 +63,0 @@ "minimatch": "^9.0.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
584994
7535
+ Addedfast-glob@^3.3.2
+ Added@typescript-eslint/types@8.2.1-alpha.26(transitive)
+ Added@typescript-eslint/visitor-keys@8.2.1-alpha.26(transitive)
- Removedglobby@^11.1.0
- Removed@typescript-eslint/types@8.2.1-alpha.25(transitive)
- Removed@typescript-eslint/visitor-keys@8.2.1-alpha.25(transitive)
- Removedarray-union@2.1.0(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removedglobby@11.1.0(transitive)
- Removedignore@5.3.2(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedslash@3.0.0(transitive)