From c99a573fdf432e72933edbed13e4e30941dfe294 Mon Sep 17 00:00:00 2001 From: Mason <33527785+masonchain@users.noreply.github.com> Date: Mon, 21 Nov 2022 14:32:08 -0600 Subject: [PATCH] JS Update entry point path Hey there Flipside gang! I was working on a little side project that uses ShroomDK and ran into some issues with importing the module. In my node modules, the index of the package is found in @flipsidecrypto/sdk/dist/src/index.js, but the base package.json has the main and type entry points as just dist/index.js. Making the change I've proposed solves the issue in my case. I'm not entirely sure if this is a common issue for people as I did not find anyone else mentioning it in #sdk-help, but figured I would raise this issue if others are indeed facing the same problem. --- js/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/package.json b/js/package.json index f357d9e..0d69b8a 100644 --- a/js/package.json +++ b/js/package.json @@ -2,8 +2,8 @@ "name": "@flipsidecrypto/sdk", "version": "1.1.1", "description": "The official Flipside Crypto SDK", - "main": "dist/index.js", - "types": "dist/index.d.ts", + "main": "dist/src/index.js", + "types": "dist/src/index.d.ts", "repository": { "type": "git", "url": "https://github.com/flipsidecrypto/sdk.git"