From df2647e5a2f5eada938a3c8f54d17a1162a6e1c8 Mon Sep 17 00:00:00 2001 From: Chris Fisher Date: Thu, 18 May 2023 11:22:53 +1200 Subject: [PATCH] Remove exports in package.json (#35) * Fix exports in package.json * wip * wip * wip --- package.json | 10 ++-------- src/index.ts | 2 +- tsconfig.json | 3 +-- yarn.lock | 5 ----- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index eb3d402..3dc97e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@authsignal/browser", - "version": "0.1.4", + "version": "0.1.5", "type": "module", "main": "dist/index.js", "module": "dist/index.js", @@ -45,11 +45,5 @@ }, "files": [ "dist" - ], - "exports": { - ".": { - "import": "./dist/index.js", - "types": "./dist/index.d.ts" - } - } + ] } diff --git a/src/index.ts b/src/index.ts index 7c8cb0d..b19e38b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ -export {Authsignal} from "./authsignal"; +export * from "./authsignal"; export * from "./types"; diff --git a/tsconfig.json b/tsconfig.json index e9961db..957fdb1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,8 +12,7 @@ "moduleResolution": "node", "esModuleInterop": true, "resolveJsonModule": true, - "preserveWatchOutput": true, - "rootDir": "src" + "preserveWatchOutput": true }, "include": ["./src/**/*.ts"] } diff --git a/yarn.lock b/yarn.lock index 9939069..983488b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -659,11 +659,6 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" -iframe-resizer@^4.3.6: - version "4.3.6" - resolved "https://registry.npmjs.org/iframe-resizer/-/iframe-resizer-4.3.6.tgz#61d92c1adefe5d416bff4fbf80c7f1f74be70ec0" - integrity sha512-wz0WodRIF6eP0oGQa5NIP1yrITAZ59ZJvVaVJqJRjaeCtfm461vy2C3us6CKx0e7pooqpIGLpVMSTzrfAjX9Sg== - ignore@^5.2.0: version "5.2.0" resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a"