-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
rename adapter.ts
-> adapters.ts
in @auth/sveltekit
#12503
rename adapter.ts
-> adapters.ts
in @auth/sveltekit
#12503
Conversation
The package.json exports ./adapters, consistent with other packages. This meant it was not accessible for consumption when the source file and exported files didn't match.
@emme1444 is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch, thanks!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12503 +/- ##
=======================================
Coverage 39.42% 39.42%
=======================================
Files 198 198
Lines 31285 31285
Branches 1370 1376 +6
=======================================
Hits 12334 12334
Misses 18951 18951 ☔ View full report in Codecov by Sentry. |
The package.json exports ./adapters, consistent with other packages. This meant it was not accessible for consumption when the source file and exported files didn't match.
☕️ Reasoning
I could not
import * from "@auth/sveltekit/adapters"
, and noticed that the source file was calledadapter.ts
(singular) but thepackage.json
expected a types export file calledadapters.d.ts
(plural).As stated above, this PR simply renames the
adapter.ts
file toadapters.ts
. I chose to rename the file in order to be consistent with the rest of the project.If I have greatly misunderstood something simple here, please let me know.
Also let me know if there are other changes needed as a result of these changes. (I couldn't think of any)
🧢 Checklist
🎫 Affected issues
I couldn't find any issues on this and I didn't create one since I though it was a small enough problem not worth an issue. If you would like me to open an issue I could do that ASAP.
📌 Resources