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

fix(include-paths): Fix issue where include paths are not handled as expected #10

Closed
wants to merge 1 commit into from

Conversation

weaintplastic
Copy link

Fixes Issue 9

@coveralls
Copy link

coveralls commented Apr 8, 2017

Coverage Status

Coverage decreased (-0.1%) to 83.987% when pulling cef77eb on weaintplastic:master into a3b579d on yibn2008:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 83.987% when pulling cef77eb on weaintplastic:master into a3b579d on yibn2008:master.

Copy link
Owner

@yibn2008 yibn2008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to accept this PR, but before that can you add test case for this ISSUE?

exts.forEach((ext) => {
imports.push(path.join(dirname, `${name}${ext}`))
includePaths.forEach((includePath) => {
imports.push(path.resolve(includePath, path.join(dirname, `${name}${ext}`)))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this place should be:

path.resolve(dirname, includePath, `${name}${ext}`)

includePath should resolved from dirname, not the opposite

@yibn2008 yibn2008 closed this Apr 13, 2017
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

3 participants