🔧 Add exports and types to package.json and update tsconfig.json for Vite-compatible build output

This commit is contained in:
RaviAnand Mohabir 2021-05-20 19:58:27 +02:00
parent 5ed4607fe5
commit 05f849939d
3 changed files with 1319 additions and 9 deletions

View File

@ -1,8 +1,24 @@
{
"name": "SvelteKitAuth",
"name": "svelte-kit-auth",
"version": "1.0.0",
"description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./client": "./dist/client/index.js",
"./providers": "./dist/providers/index.js"
},
"typesVersions": {
"*": {
"client": [
"./dist/client/index.d.ts"
],
"providers": [
"./dist/providers/index.d.ts"
]
}
},
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1",
@ -10,15 +26,22 @@
"format": "prettier --write --plugin-search-dir=. ."
},
"keywords": [
"auth",
"authentication",
"csrf",
"jwt",
"nodejs",
"oauth",
"oauth2",
"oidc",
"sveltejs",
"sveltekit",
"auth",
"oauth"
"sveltekitauth"
],
"author": "RaviAnand Mohabir <moravrav@gmail.com> (https://ravianand.web.app)",
"repository": "https://github.com/Dan6erbond/SvelteKitAuth",
"license": "MIT",
"private": false,
"types": "dist/index.d.ts",
"dependencies": {
"cookie": "^0.4.1",
"jsonwebtoken": "^8.5.1"

View File

@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"module": "es6",
"moduleResolution": "node",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
@ -13,8 +14,5 @@
"baseUrl": "./",
"incremental": true
},
"exclude": [
"node_modules",
"dist"
]
"exclude": ["node_modules", "dist", "example-app"]
}

1289
yarn.lock Normal file

File diff suppressed because it is too large Load Diff