ekalinin / robots.js

Parser for robots.txt for node.js
MIT License
66 stars 21 forks source link

Use require to get package version number #32

Closed allenevans closed 5 years ago

allenevans commented 5 years ago

Remove use of file.readFileSync to get the version information from package.json.

This resolves an issue where package.json may not be bundled correctly by webpack.

ekalinin commented 5 years ago

Thanks!