Skip to content

#41: fix 引用时报 ali-mns 不是一个 module 的错误#42

Open
Jeff-Tian wants to merge 23 commits into
InCar:masterfrom
Jeff-Tian:master
Open

#41: fix 引用时报 ali-mns 不是一个 module 的错误#42
Jeff-Tian wants to merge 23 commits into
InCar:masterfrom
Jeff-Tian:master

Conversation

@Jeff-Tian

Copy link
Copy Markdown
  1. 去掉了对 gulp 的依赖,直接使用 tsc 来编译项目
  2. npm 发布后会在 index.d.ts 最后一行加上 exports default AliMNS,从而引用方引用时不再报 ali-msn 不是一个 module 的错误。

原问题参见:#41

目前发布到了 npm registry: ali-mns-ts,可以 npm i ali-mns-ts --save 在项目中验证这个修复。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant