Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"cz-conventional-changelog": "3.3.0",
"dedent": "1.7.2",
"detect-indent": "7.0.2",
"glob": "15.0.0",
"inquirer": "8.2.7",
"minimist": "1.2.8",
"strip-json-comments": "5.1.0"
Expand Down
18 changes: 0 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/configLoader/findup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'node:fs';
import path from 'node:path';
import { globSync } from 'glob';

export default findup;

Expand All @@ -11,13 +11,13 @@ function findup (patterns, options, fn) {
var lastpath;
var file;

options = Object.create(options);
options.maxDepth = 1;
options.cwd = path.resolve(options.cwd);
// Node's fs.globSync has no `nocase` option. Callers pass literal file
// names, so matching follows the file system's own case sensitivity.
options = { cwd: path.resolve(options.cwd) };

do {
file = patterns.filter(function (pattern) {
var configPath = globSync(pattern, options)[0];
var configPath = fs.globSync(pattern, options)[0];

if (configPath) {
return fn(path.join(options.cwd, configPath));
Expand Down
Loading