Skip to content

Commit 4a8a968

Browse files
committed
Fix reading options directory
1 parent a433529 commit 4a8a968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/csscomb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function getDetectedOptions(detected, handlers) {
158158
* @name CSScomb
159159
*/
160160
var CSScomb = function(config) {
161-
var options = fs.readdirSync('./lib/options').map(function(option) {
161+
var options = fs.readdirSync(__dirname + '/options').map(function(option) {
162162
return require('./options/' + option);
163163
});
164164

@@ -286,7 +286,7 @@ CSScomb.detectInString = function detectInString(text, options) {
286286

287287
if (!text) return text;
288288

289-
var optionNames = fs.readdirSync('./lib/options');
289+
var optionNames = fs.readdirSync(__dirname + '/options');
290290
optionNames.forEach(function(option) {
291291
option = option.slice(0, -3);
292292
if (options && options.indexOf(option) < 0) return;

0 commit comments

Comments
 (0)