Skip to content

Change paths determination for CLI#1974

Merged
lukeapage merged 1 commit intoless:masterfrom
dominicbarnes:master
May 2, 2014
Merged

Change paths determination for CLI#1974
lukeapage merged 1 commit intoless:masterfrom
dominicbarnes:master

Conversation

@dominicbarnes
Copy link
Copy Markdown

Just a slight modification to how paths are determined before loading a file. (in the node/cli env)

If env.paths does not exist, it introduces undefined into the array. This breaks in node v0.10+ by throwing an exception when path.join is called. Secondly, this also checks for whether or not . has already been added to the list before appending it.

Currently, I always have to make sure paths is defined in my LESS options, this eliminates that necessity. (since the defaults here are reasonable)

dominicbarnes pushed a commit to dominicbarnes/component-builder-less that referenced this pull request Apr 14, 2014
lukeapage added a commit that referenced this pull request May 2, 2014
Change paths determination for CLI
@lukeapage lukeapage merged commit 85b911a into less:master May 2, 2014
@lukeapage
Copy link
Copy Markdown
Member

Thanks looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants