Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Do not publish ts sources to npm #440

@cronon

Description

@cronon

In typescript project, it might not be possible to import incremental-dom@0.7.0 with import because in this case typescript will try to compile source files from node_modules. But the project may have different compiler options and typescript version and incremental-dom sources will fail to compile. Unfortunately, the only workaround I found is to use require()
https://github.com/Microsoft/TypeScript/wiki/FAQ#why-is-a-file-in-the-exclude-list-still-picked-up-by-the-compiler

In general, ts code should not be published to npm
microsoft/TypeScript#22228

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions