feat: init 命令生成js类型的导出文件,以支持纯js和jsx项目的使用 #129
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
先说一下大体改动:
{ isDefault: true }
, 我查看了一下全局代码,感觉并没有使用到这个默认值的操作,如果不正确,希望和我说一下,不能这样改,我考虑看看其他方式。[type]
, 以支持js和ts类型的文件生成,fileType
以支持 生成文件类型,但是感觉这部分改动还挺大的,对原设计代码上,所以您应该先看看,我的意图是,纯js和jsx项目中,生成ts类型的文件导出,会引起编译错误的,虽然我可以去手动改ts后缀,但是总归不太方面,而且我不太想为了这么几个文件就改动编译配置,让我项目工程就开始支持编译ts文件,所以希望一开始就只为了js和jsx项目服务,没有ts的相关引入和操作