Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Publish types #11

Merged
merged 5 commits into from
Aug 2, 2023
Merged

Publish types #11

merged 5 commits into from
Aug 2, 2023

Conversation

wojtekmaj
Copy link
Contributor

@wojtekmaj wojtekmaj commented Aug 2, 2023

Closes #10

Sooo, it isn't perfect* - I've had problems configuring microbundle to output separate typings for CJS and ESM - but it's much better than it used to be. Here are outputs of arethetypeswrong (which actually tells a lot more, especially about module resolution):

Before:
image

After:
image

* - "isn't perfect" means that it has incorrect types for (rather rare) setup: Node.js >=16 + TypeScript + moduleResolution: "node16"/"nodenext". The question is, why would you need barcode-detector in Node.js.

@wojtekmaj
Copy link
Contributor Author

BTW, online results of arethetypeswrong: https://arethetypeswrong.github.io/?p=barcode-detector

@gruhn gruhn merged commit 21e83d3 into gruhn:master Aug 2, 2023
@gruhn
Copy link
Owner

gruhn commented Aug 2, 2023

Thanks!

@wojtekmaj
Copy link
Contributor Author

Please test it out before releasing :D Or release a beta version NOT using latest tag, and I'll have a look in real life application!

@wojtekmaj wojtekmaj deleted the fix-types branch August 2, 2023 12:26
@gruhn
Copy link
Owner

gruhn commented Aug 2, 2023

It releases automatically on merge. Don't worry, there are not many users of this package

@wojtekmaj
Copy link
Contributor Author

Oh, my!

Well, I'm happy to say, it works just fine :D Thanks again!

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.

Publish types?
2 participants