Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change paths determination for CLI #1974

Merged
merged 1 commit into from
May 2, 2014
Merged

Conversation

dominicbarnes
Copy link

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
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