Skip to content

Commit

Permalink
Some cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed May 16, 2023
1 parent b3e4667 commit 99e781f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/with-react-native-web/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup src/index.tsx --format esm,cjs --dts --external react",
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
"build": "tsup ",
"dev": "tsup --watch",
"clean": "rm -rf dist"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-react-native-web/packages/ui/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Button, type ButtonProps } from "./Button";
export { Button, type ButtonProps } from "./button";
7 changes: 4 additions & 3 deletions examples/with-react-native-web/packages/ui/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from "tsup";
import { defineConfig, Options } from "tsup";

export default defineConfig({
export default defineConfig((options: Options) => ({
entry: {
".": "src/index.tsx",
},
Expand All @@ -10,4 +10,5 @@ export default defineConfig({
format: ["cjs", "esm"],
external: ["react"],
dts: true,
});
...options,
}));

0 comments on commit 99e781f

Please sign in to comment.