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.
This commit is contained in:
Mason 2022-11-21 14:32:08 -06:00 committed by GitHub
parent 03de65053f
commit c99a573fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"