matthewhudson / current-device

📱 The easiest way to write conditional CSS and/or JavaScript based on device operating system (iOS, Android, Blackberry, Windows, Firefox OS, MeeGo), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).
https://matthewhudson.github.io/current-device/
MIT License
3.94k stars 587 forks source link

Type definition file not included in package #235

Closed rann91 closed 3 years ago

rann91 commented 4 years ago

I'm using this package with TypeScript. When I install the package, the index.d.ts is not included in the bundle. See https://snipboard.io/OUVaKF.jpg. I think it's because the types reference in package.json is set to "lib/types/index.d.ts", while the lib/ folder is being ignored.

I'm using the latest version: 0.10.0

bparish628 commented 3 years ago

@matthewhudson Anyway we could get a release that includes these types? Looks like it was merged in September, but it's not in any releases yet.

matthewhudson commented 3 years ago

@bparish628 Thank you for reporting! I just published the fix in v0.10.2