ignore file when publishing as npm package
Fix bug
add test