Skip to content

Conversation

etpinard
Copy link
Contributor

@justinwoo @mdtusz @bpostlethwaite

I found a possibly cleaner way (you tell me 😄) to find the path to the topojson files using node's require.resolve.

Supports both npm@2 and npm@3 .

@etpinard
Copy link
Contributor Author

relevant PR: #12

@mdtusz
Copy link
Contributor

mdtusz commented Nov 30, 2015

Looks good to me! require.resolve uses the same logic as regular requires so it shouldn't encounter any issues with different node versions.

etpinard added a commit that referenced this pull request Dec 7, 2015
Use require.resolve to get path to topojson files
@etpinard etpinard merged commit 0bbfa25 into master Dec 7, 2015
@etpinard etpinard deleted the better-topojson branch December 7, 2015 21:02
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