Skip to content

Commit 5681cdb

Browse files
authored
fix: missing export of esmodule on sdk-analytics (#1334)
* fix: missing export of esmodule * fix: build esm and cjs versions on build command
1 parent d1671fa commit 5681cdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/sdk-analytics/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"version": "0.0.5",
44
"description": "Analytics package for MetaMask SDK",
55
"main": "dist/index.js",
6+
"module": "dist/index.mjs",
67
"types": "dist/index.d.ts",
78
"scripts": {
8-
"build": "tsup src/index.ts --dts",
9+
"build": "tsup src/index.ts --dts --format esm,cjs",
910
"lint": "eslint src --ext .ts,.tsx --ignore-pattern 'src/schema.ts'",
1011
"lint:fix": "eslint src --ext .ts,.tsx --fix --ignore-pattern 'src/schema.ts'",
1112
"lint:changelog": "../../scripts/validate-changelog.sh @metamask/sdk-analytics",

0 commit comments

Comments
 (0)