From 2a3b31e679f6613d822a36c5e77c7eeba2d58f00 Mon Sep 17 00:00:00 2001 From: Karl Date: Thu, 21 Nov 2024 10:32:33 +0100 Subject: [PATCH] fix build - add missing deps - fix export paths for esm build --- packages/js-sdk/package.json | 14 +++++++++++--- packages/js-sdk/src/index.ts | 2 ++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 packages/js-sdk/src/index.ts diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.json index 785cbc41d..b6903ad5d 100644 --- a/packages/js-sdk/package.json +++ b/packages/js-sdk/package.json @@ -2,8 +2,13 @@ "name": "@dm3-org/dm3-js-sdk", "license": "BSD-2-Clause", "version": "0.0.1", - "main": "dist/index.js", - "types": "dist/index.d.ts", + "main": "./lib/esm/index.js", + "types": "./lib/esm/index.d.ts", + "exports": { + ".": { + "import": "./lib/esm/index.js" + } + }, "dependencies": { "@dm3-org/dm3-lib-crypto": "workspace:^", "@dm3-org/dm3-lib-delivery": "workspace:^", @@ -11,12 +16,15 @@ "@dm3-org/dm3-lib-profile": "workspace:^", "@dm3-org/dm3-lib-server-side": "workspace:^", "@dm3-org/dm3-lib-shared": "workspace:^", + "@dm3-org/dm3-lib-smart-account": "workspace:^", "@dm3-org/dm3-lib-storage": "workspace:^", "@dm3-org/dm3-lib-test-helper": "workspace:^", "@web3-name-sdk/core": "^0.2.0", "axios": "^0.27.2", "dotenv": "^16.0.1", - "ethers": "5.7.2" + "ethers": "5", + "siwe": "^2.3.2", + "socket.io-client": "^4.8.1" }, "scripts": { "test": "jest --coverage --transformIgnorePatterns 'node_modules/(?!(dm3-lib-\\w*)/)'", diff --git a/packages/js-sdk/src/index.ts b/packages/js-sdk/src/index.ts new file mode 100644 index 000000000..3d7651c78 --- /dev/null +++ b/packages/js-sdk/src/index.ts @@ -0,0 +1,2 @@ +export * from './Dm3Sdk'; +export * from './Dm3';