From 293c0072a2692674730b484c783d61bc130815cd Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Tue, 16 May 2023 12:22:06 -0700 Subject: [PATCH] Aha, bad entrypoint name. --- examples/with-react-native-web/packages/ui/src/index.tsx | 2 +- examples/with-react-native-web/packages/ui/tsup.config.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/with-react-native-web/packages/ui/src/index.tsx b/examples/with-react-native-web/packages/ui/src/index.tsx index f4ea832165df1..1a48e2186487e 100644 --- a/examples/with-react-native-web/packages/ui/src/index.tsx +++ b/examples/with-react-native-web/packages/ui/src/index.tsx @@ -1 +1 @@ -export { Button, type ButtonProps } from "./button"; +export { Button, type ButtonProps } from "./Button"; diff --git a/examples/with-react-native-web/packages/ui/tsup.config.ts b/examples/with-react-native-web/packages/ui/tsup.config.ts index 26e5d59e2184c..7104bc6ad5094 100644 --- a/examples/with-react-native-web/packages/ui/tsup.config.ts +++ b/examples/with-react-native-web/packages/ui/tsup.config.ts @@ -2,11 +2,12 @@ import { defineConfig, Options } from "tsup"; export default defineConfig((options: Options) => ({ entry: { - ".": "src/index.tsx", + index: "src/index.tsx", }, banner: { js: "'use client'", }, + clean: true, format: ["cjs", "esm"], external: ["react"], dts: true,