edit npmignore
fix resources
fix require path