Skip to content

Commit ecfc41e

Browse files
jonrohantonyganch
authored andcommitted
Follow the configPath to the real path
This is in case the configPath is a symlink. Which happens to me with my dotfiles
1 parent efa3d8d commit ecfc41e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/csscomb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ CSScomb.getCustomConfigPath = function getCustomConfigPath(configPath) {
247247
configPath = configPath || path.join(process.cwd(), '.csscomb.json');
248248

249249
// If we've finally found a config, return its path:
250-
if (fs.existsSync(configPath)) return configPath;
250+
if (fs.existsSync(configPath)) return fs.realpathSync(configPath);
251251

252252
// If we are in HOME dir already and yet no config file, return a default
253253
// one from our package.

0 commit comments

Comments
 (0)