Dan6erbond / sk-auth

Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!
MIT License
577 stars 70 forks source link

Config improve #33

Closed x-ror closed 2 years ago

x-ror commented 3 years ago

Improved rollup.config.js for ESM and CJS format. move dist files to /providers/index.{m}js, /client/index.{m}js and ./index.{m}js used svelte style for rollup config and import/require in package.json used prepare command so now package is packed and published and on local npm install

Dan6erbond commented 3 years ago

I'll have to give this a look. Seeing the way the bundle is generated adds a lot of clutter to the file structure, and if that can be avoided I'll keep things the way they are. At the moment the build seems to work on a variety of setups, so as long as there are no issues I prefer the current way we're doing things.