arcjet / arcjet-js

Arcjet JS SDKs. Rate limiting, bot protection, email verification & attack defense for Node.js, Next.js, Bun & SvelteKit.
https://arcjet.com
Apache License 2.0
253 stars 5 forks source link

Consider removing TS files from published packages #1836

Open blaine-arcjet opened 3 days ago

blaine-arcjet commented 3 days ago

Some bundlers and build tools opt to load .ts files instead of the .js and .d.ts files we publish. This causes problems when TypeScript is configured differently than we configure it.

We should enumerate the advantages and disadvantages of including the .ts files and decide if we want to stop publishing them.