From 06a26ea2403aebe9c2f9a114fe69380e300018d1 Mon Sep 17 00:00:00 2001 From: Davide Carpini Date: Mon, 5 Feb 2024 18:29:53 +0100 Subject: [PATCH] fix: add cjs exports --- packages/dapp-kit-react/package.json | 4 ++-- packages/dapp-kit-ui/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/dapp-kit-react/package.json b/packages/dapp-kit-react/package.json index c0e4094d..3c8c887d 100644 --- a/packages/dapp-kit-react/package.json +++ b/packages/dapp-kit-react/package.json @@ -16,9 +16,9 @@ "LICENSE" ], "scripts": { - "build": "tsup src/index.ts --format esm --dts --external react", + "build": "tsup src/index.ts --format cjs,esm --dts --external react", "clean": "rm -rf dist .turbo", - "dev": "tsup src/index.ts --format esm --watch --dts --external react", + "dev": "tsup src/index.ts --format cjs,esm --watch --dts --external react", "lint": "tsc --noEmit && eslint src --ext .js,.jsx,.ts,.tsx", "purge": "yarn clean && rm -rf node_modules", "test": "vitest run --coverage", diff --git a/packages/dapp-kit-ui/package.json b/packages/dapp-kit-ui/package.json index 04084a62..dd1ee7cf 100644 --- a/packages/dapp-kit-ui/package.json +++ b/packages/dapp-kit-ui/package.json @@ -23,7 +23,7 @@ "LICENSE" ], "scripts": { - "build": "tsup", + "build": "tsup --format cjs,esm --dts", "clean": "rm -rf dist .turbo", "dev": "rm -rf ../../.parcel-cache; parcel --no-cache index.html", "format": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --ignore-path ./.eslintignore --write", @@ -31,7 +31,7 @@ "purge": "yarn clean && rm -rf node_modules", "test": "vitest run --coverage", "test:dev": "vitest run ", - "watch": "tsup --watch" + "watch": "tsup --format cjs,esm --dts --watch" }, "dependencies": { "@vechain/dapp-kit": "*",