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

Require utils via relative path #33

Merged
merged 1 commit into from
Feb 20, 2015
Merged

Conversation

wbk
Copy link
Contributor

@wbk wbk commented Feb 20, 2015

"A module prefixed with './' is relative to the file calling require(). That is, circle.js must be in the same directory as foo.js for require('./circle') to find it."

There's no need to call process.cwd(). Additionally, this completely broke my usage of grunt-env with io.js; where process.cwd() resolved to the directory in which grunt had been run. I did not investigate whether the same behavior exists on any of Joyent's releases of node.

stephanebachelier added a commit that referenced this pull request Feb 20, 2015
Require utils via relative path
@stephanebachelier stephanebachelier merged commit 83fdfe0 into jsoverson:master Feb 20, 2015
@wbk wbk deleted the patch-1 branch February 20, 2015 14:36
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.

None yet

2 participants