From dcb968177bfc3234d7318c78a31b29c649260e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Tue, 3 Sep 2024 15:26:53 +0200 Subject: [PATCH] Fix nextJS issue --- js-library/package.json | 2 ++ js-library/src/index.ts | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js-library/package.json b/js-library/package.json index 1a202a5..3a94c0a 100644 --- a/js-library/package.json +++ b/js-library/package.json @@ -56,6 +56,8 @@ "types": "./dist/request-verifiable-presentation.d.ts" } }, + "main": "dist/index.js", + "types": "dist/index.d.ts", "devDependencies": { "@types/jest": "^29.5.12", "@types/node": "^20.12.7", diff --git a/js-library/src/index.ts b/js-library/src/index.ts index f8f4c0d..5a9c9cb 100644 --- a/js-library/src/index.ts +++ b/js-library/src/index.ts @@ -1,3 +1 @@ -throw new Error( - "verifiable-credentials have no entry-point: consult README for usage", -); +export * from "./request-verifiable-presentation";