Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Auto-generate TypeScript declaration maps #107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kripod
Copy link
Contributor

@kripod kripod commented Jan 14, 2020

Resolves #64

@FredKSchott
Copy link
Owner

I need to think more about this one. It's a bit of a violation of @pika/pack's whole deal to copy the source code directly into the package (or at least, every package so far has tried to just build modern ES2020 code into it instead). But I also see that this is a great use case for including the src/ directory, or at least having an option to include it.

@kripod
Copy link
Contributor Author

kripod commented Jan 19, 2020

I was thinking about this during the past few days. The declarationMap setting should be false by default, but tsconfig.json could override it. When the latter approach is taken, the src directory must be copied to the resulting package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support declarationMap for @pika/plugin-ts-standard-pkg
2 participants