diff --git a/.changeset/slimy-months-roll.md b/.changeset/slimy-months-roll.md new file mode 100644 index 0000000..015f81c --- /dev/null +++ b/.changeset/slimy-months-roll.md @@ -0,0 +1,6 @@ +--- +'@thewuh/wallet-standard-wallet-adapter-svelte': patch +'@thewuh/wallet-adapter-svelte-core': patch +--- + +Fix: Sourcemap missing reference files diff --git a/packages/core/package.json b/packages/core/package.json index 5717ac3..ca03a4b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -14,10 +14,10 @@ "type": "module", "sideEffects": false, "main": "dist/cjs/index.js", - "module": "dist/esm/index.mjs", + "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { - "import": "./dist/esm/index.mjs", + "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", "types": "./dist/esm/index.d.ts" }, @@ -30,7 +30,7 @@ }, "scripts": { "clean": "shx rm -rf dist/*", - "build": "pnpm clean && tsc -p tsconfig.json; tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json", + "build": "pnpm clean && tsc -p tsconfig.json; tsc -p tsconfig.json && tsc -p tsconfig.cjs.json", "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > dist/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > dist/esm/package.json" }, "peerDependencies": { diff --git a/packages/core/src/walletStore.ts b/packages/core/src/walletStore.ts index 5efe9c0..5b8e72c 100644 --- a/packages/core/src/walletStore.ts +++ b/packages/core/src/walletStore.ts @@ -11,7 +11,7 @@ import type { WalletName, } from '@solana/wallet-adapter-base'; import { WalletNotConnectedError, WalletNotReadyError, WalletReadyState } from '@solana/wallet-adapter-base'; -import { Connection, PublicKey, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, PublicKey, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; import { get, writable } from 'svelte/store'; import { WalletNotSelectedError } from './errors.js'; import { getLocalStorage, setLocalStorage } from './localStorage.js'; diff --git a/packages/standard/package.json b/packages/standard/package.json index 6b91865..b0b2b01 100644 --- a/packages/standard/package.json +++ b/packages/standard/package.json @@ -11,10 +11,10 @@ "type": "module", "sideEffects": false, "main": "dist/cjs/index.js", - "module": "dist/esm/index.mjs", + "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { - "import": "./dist/esm/index.mjs", + "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", "types": "./dist/esm/index.d.ts" }, @@ -27,7 +27,7 @@ }, "scripts": { "clean": "shx rm -rf dist/*", - "build": "pnpm clean && tsc -p tsconfig.json; tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json", + "build": "pnpm clean && tsc -p tsconfig.json; tsc -p tsconfig.json && tsc -p tsconfig.cjs.json", "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > dist/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > dist/esm/package.json" }, "peerDependencies": {