yarn publish 与 npm publish 的不同之处

🍺 问题 在写一个 Yeoman generator 的时候, 按照官方文档的写法,在 package.json 中写上了 files 字段,如下: { "name": "generator-webpack-babel", "version": "0.6.0", "description": "", "files": [ "generators" ], "keywords": ["yeoman-generator"], "dependencies": { "yeoman-generator" »