From b8a4c5a2853b8a83866a44e12124576dc4bd5295 Mon Sep 17 00:00:00 2001 From: Dan6erbond Date: Tue, 25 May 2021 18:23:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20`module`=20instead=20of=20?= =?UTF-8?q?`main`=20config=20fields?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/package.json | 2 +- package.json | 5 +++-- providers/package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/package.json b/client/package.json index 71a6308..eb0c1cb 100644 --- a/client/package.json +++ b/client/package.json @@ -1,5 +1,5 @@ { "internal": true, - "main": "../dist/client/index.js", + "module": "../dist/client/index.js", "types": "../dist/client/index.d.ts" } diff --git a/package.json b/package.json index 3d3fdde..2c71d29 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,13 @@ "name": "sk-auth", "version": "0.3.5", "description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!", - "main": "dist/index.js", + "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": "./dist/index.js", "./client": "./dist/client/index.js", - "./providers": "./dist/providers/index.js" + "./providers": "./dist/providers/index.js", + "./package.json": "./package.json" }, "files": [ "dist", diff --git a/providers/package.json b/providers/package.json index b3e90a0..a3539da 100644 --- a/providers/package.json +++ b/providers/package.json @@ -1,5 +1,5 @@ { "internal": true, - "main": "../dist/providers/index.js", + "module": "../dist/providers/index.js", "types": "../dist/providers/index.d.ts" }