Skip to content

Commit

Permalink
fix(react): build all entrypoints at once (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 30, 2024
1 parent a56b5fe commit 91bcb3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"conversational-ui",
"conversational-ai"
],
"version": "0.5.20",
"version": "0.5.21",
"license": "MIT",
"exports": {
".": {
Expand Down
14 changes: 6 additions & 8 deletions packages/react/scripts/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import { copyFileSync, mkdirSync } from "node:fs";

// JS
await build({
entry: ["src/index.ts"],
entry: [
"src/index.ts",
"src/edge.ts",
"src/tailwindcss/index.ts",
"src/internal.ts",
],
format: ["cjs", "esm"],
dts: true,
sourcemap: true,
Expand All @@ -15,13 +20,6 @@ await build({
},
});

await build({
entry: ["src/edge.ts", "src/tailwindcss/index.ts", "src/internal.ts"],
format: ["cjs", "esm"],
dts: true,
sourcemap: true,
});

// css

await build({
Expand Down

0 comments on commit 91bcb3b

Please sign in to comment.