rapidjs / rapid.js

An ORM-like Interface and a Router For Your API Requests
https://rapidjs.drewjbartlett.com
711 stars 45 forks source link

[Question]: How do imports work? #23

Closed BrainMaestro closed 6 years ago

BrainMaestro commented 6 years ago

I see that there's no top level index.js or even on in the src folder that reexports Rapid and Auth. The docs suggest import Rapid from 'rapid.js'; which seems like it clearly won't work. Am I missing something here?

drewjbartlett commented 6 years ago

https://github.com/rapidjs/rapid.js/blob/master/package.json#L5

That tells npm where the main entry point is :)

BrainMaestro commented 6 years ago

Oh right. Just a little unusual then