Skip to content

Failed to emit declaration files when publishing component #120

Description

@vincentbel

对于 component 类型的项目,运行 npm run publish 之后,发布的内容中缺少了类型声明文件。

实际应该是在用 tsc 生成类型声明文件时出错了,直接运行 tsc 生成类型声明文件会报如下错误:

image

所以应该是在 tsconfig.json 里增加了 noEmit 配置导致的。(noEmit 是在这个 PR 里加上的:https://github.com/prijs/pri/pull/113/files#diff-5f12f27f3a5e43507dad6a0936033645ff2f210af80bb3e5445d51b593238a41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions