mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-07-30 13:46:20 +02:00
🔧 Add exports
and types
to package.json
and update tsconfig.json
for Vite-compatible build output
This commit is contained in:
parent
5ed4607fe5
commit
05f849939d
31
package.json
31
package.json
@ -1,8 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "SvelteKitAuth",
|
"name": "svelte-kit-auth",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!",
|
"description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!",
|
||||||
"main": "dist/index.js",
|
"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": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
@ -10,15 +26,22 @@
|
|||||||
"format": "prettier --write --plugin-search-dir=. ."
|
"format": "prettier --write --plugin-search-dir=. ."
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
"auth",
|
||||||
|
"authentication",
|
||||||
|
"csrf",
|
||||||
|
"jwt",
|
||||||
|
"nodejs",
|
||||||
|
"oauth",
|
||||||
|
"oauth2",
|
||||||
|
"oidc",
|
||||||
"sveltejs",
|
"sveltejs",
|
||||||
"sveltekit",
|
"sveltekit",
|
||||||
"auth",
|
"sveltekitauth"
|
||||||
"oauth"
|
|
||||||
],
|
],
|
||||||
"author": "RaviAnand Mohabir <moravrav@gmail.com> (https://ravianand.web.app)",
|
"author": "RaviAnand Mohabir <moravrav@gmail.com> (https://ravianand.web.app)",
|
||||||
|
"repository": "https://github.com/Dan6erbond/SvelteKitAuth",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": false,
|
"private": false,
|
||||||
"types": "dist/index.d.ts",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cookie": "^0.4.1",
|
"cookie": "^0.4.1",
|
||||||
"jsonwebtoken": "^8.5.1"
|
"jsonwebtoken": "^8.5.1"
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"module": "commonjs",
|
"module": "es6",
|
||||||
|
"moduleResolution": "node",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
@ -13,8 +14,5 @@
|
|||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"incremental": true
|
"incremental": true
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": ["node_modules", "dist", "example-app"]
|
||||||
"node_modules",
|
|
||||||
"dist"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user