From 1cd1cc0c57d7627945b623dde82fb53b31c670e3 Mon Sep 17 00:00:00 2001 From: NAPAS UDOMSAK <14320466+tian000@users.noreply.github.com> Date: Wed, 6 Nov 2024 21:11:12 -0800 Subject: [PATCH] add .js --- .changeset/hot-tools-heal.md | 5 +++++ .changeset/orange-bears-tan.md | 5 +++++ packages/sdk/package.json | 2 -- packages/sdk/src/index.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changeset/hot-tools-heal.md create mode 100644 .changeset/orange-bears-tan.md diff --git a/.changeset/hot-tools-heal.md b/.changeset/hot-tools-heal.md new file mode 100644 index 0000000..ddc192f --- /dev/null +++ b/.changeset/hot-tools-heal.md @@ -0,0 +1,5 @@ +--- +"@phantom/wallet-sdk-early-access": patch +--- + +remove type:module diff --git a/.changeset/orange-bears-tan.md b/.changeset/orange-bears-tan.md new file mode 100644 index 0000000..919c820 --- /dev/null +++ b/.changeset/orange-bears-tan.md @@ -0,0 +1,5 @@ +--- +"@phantom/wallet-sdk-early-access": patch +--- + +add .js diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 45f02ba..122301c 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -7,8 +7,6 @@ "import": "./dist/index.js" } }, - "main": "dist/index.js", - "types": "dist/index.d.ts", "packageManager": "yarn@4.2.2", "scripts": { "build": "tsc --build" diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index 7435608..4c2cd8e 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -1,4 +1,4 @@ -import { SDK_URL } from "./constants"; +import { SDK_URL } from "./constants.js"; export function createPhantom() { const container = document.head || document.documentElement;