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 relative path resolve problem #81

Merged
merged 1 commit into from
Sep 25, 2015

Conversation

pnlybubbles
Copy link
Contributor

When an absolute path is given as entry file, a relative path will be in row.file based from a directory inside row.basedir, but only relative path is given to fs.realpathSync().
fs.realpathSync() uses process.cwd to resolve relative paths, so if entry files are not in the same directory with running compilation task, tsify could not find any entry files.

So, I fixed this problem by resolving entry paths with the base directory before resolving real paths.

@pnlybubbles pnlybubbles changed the title fix relative path resolution problem fix relative path resolve problem Sep 25, 2015
@smrq
Copy link
Member

smrq commented Sep 25, 2015

Looks good, thanks!

smrq added a commit that referenced this pull request Sep 25, 2015
@smrq smrq merged commit 60217c7 into TypeStrong:master Sep 25, 2015
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