使用 es6 语法写了 几个工具方法, 现在将其发布到 npm 上,一直在报 undefined。请问问题出现在哪里,github地址 https://github.com/lizhanyi/t..., 该如何解决呢,不胜感激
我本地设置 registry 没有遇到你说的问题,成功发布 ⇒ npm publish npm notice npm notice ? feitools@1.0.6 npm notice === Tarball Contents === npm notice 763B package.json npm notice 8B .babelrc npm notice 288B index.html npm notice 1.2kB webpack.config.js npm notice 313B dist/index.html npm notice 11.8kB dist/index.js npm notice 159B src/index.js npm notice 801B src/memory/index.js npm notice 1.3kB src/numToZh_cn/index.js npm notice 461B src/timeFrame/animationFrame/index.js npm notice 546B src/timeFrame/index.js npm notice === Tarball Details === npm notice name: feitools npm notice version: 1.0.6 npm notice package size: 5.1 kB npm notice unpacked size: 17.6 kB npm notice shasum: d97b56e7b6caba27edbd132d79877c86217277ab npm notice integrity: sha512-PkKKy+8/G4tBf[...]NmAFl2MCLgYoQ== npm notice total files: 11 npm notice + feitools@1.0.6 建议楼主如果采用编译方式发包,可以在项目下添加 .npmignore 忽略对源码的发布。在发包之前利用 npm pack --dry-run 查看打包内容减小发包体积。
我本地设置 registry 没有遇到你说的问题,成功发布
建议楼主如果采用编译方式发包,可以在项目下添加
.npmignore
忽略对源码的发布。在发包之前利用
npm pack --dry-run
查看打包内容减小发包体积。