Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TypeScript definitions #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

michaelbull
Copy link

Add TypeScript definitions for people consuming this in a TypeScript setting - e.g. a webpack.config.ts, or a vite.config.ts (as is my case).

Requires us to explicitly define the files in package.json as a result, as otherwise the index.d.ts file would not be picked up.

I've ensured that both the bin dir and the index.js still get shipped by double checking with npm pack.

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

Successfully merging this pull request may close these issues.

1 participant