Skip to content

Add support for uncompiled library development #17

Description

@DrewImm

During library development, it can be painful/slow to rebuild the library each time to test it downstream. Instead of re-running the build-chain each iteration, it would be nice if the downstream package could install the library (from ./ instead of ./dist/src), and it would use uncompiled typescript when installed locally for dev, but use the compiled library when installed from npm

Proposed Solution

Use exports option in root to allow installation of uncompiled source
The consumer package.json can use exports option to route imports to the uncompiled source, e.g.

...
"exports": {
  ".": "./src"
},
...

This means that the uncompiled source can be imported without having to import my-lib/src/...

Add ts-package-config variable to allow for removal/modification of exports

Add a configuration option so that exports can be merged with the built package.json

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions