modify some files for npm publish