diff --git a/CHANGELOG.md b/CHANGELOG.md index a1ae5c9..c06847b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.12.3](https://github.com/humanwhocodes/config-array/compare/v0.12.2...v0.12.3) (2024-04-03) + + +### Bug Fixes + +* don't match config with `ignores` and `name` only ([#133](https://github.com/humanwhocodes/config-array/issues/133)) ([3dabb4d](https://github.com/humanwhocodes/config-array/commit/3dabb4db2072a86d9b567205626ba0ed537bea2f)) + ## [0.12.2](https://github.com/humanwhocodes/config-array/compare/v0.12.1...v0.12.2) (2024-04-02) diff --git a/package-lock.json b/package-lock.json index 5aef5a4..d314cf0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@humanwhocodes/config-array", - "version": "0.12.2", + "version": "0.12.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@humanwhocodes/config-array", - "version": "0.12.2", + "version": "0.12.3", "license": "Apache-2.0", "dependencies": { "@humanwhocodes/object-schema": "^2.0.3", diff --git a/package.json b/package.json index ae76b90..cb163e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@humanwhocodes/config-array", - "version": "0.12.2", + "version": "0.12.3", "description": "Glob-based configuration matching.", "author": "Nicholas C. Zakas", "main": "api.js", diff --git a/src/config-array.js b/src/config-array.js index 0722a18..c08391d 100644 --- a/src/config-array.js +++ b/src/config-array.js @@ -334,7 +334,7 @@ function pathMatchesIgnores(filePath, basePath, config) { */ const relativeFilePath = path.relative(basePath, filePath); - return Object.keys(config).length > 1 && + return Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 && !shouldIgnorePath(config.ignores, filePath, relativeFilePath); }