Skip to content

Add compiled TypeScript sources to packaged publishes #8

@odahcam

Description

@odahcam

Why? Other people can explain better:

You have TS files in your node_modules. This really goes against how libraries should be packaged:
libraries should never ship their source .ts files.

The reason for this rule is that the TypeScript version your app isn't necessarily the same as the TS version your library uses. Different versions of TS can produce different output, and give different errors for the same input. They don't even support the same language features. So packaging libraries with TS sources will always break someone's project.

Source: angular/angular-cli#8284 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions