Skip to content

Commit 5fa21bb

Browse files
committed
docs(changeset): Fix build
1 parent 8887bd0 commit 5fa21bb

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

.changeset/few-snakes-shake.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@codeui/kit": patch
3+
---
4+
5+
Fix build

packages/kit/rollup.config.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,22 @@ function tsTypes() {
2727

2828
const config = withSolid({
2929
input: "src/index.tsx",
30-
targets: ["esm"],
31-
output: [{ preserveModules: true, dir: "dist/esm" }],
30+
targets: ["esm", "cjs"],
31+
output: [{ preserveModules: true, dir: "dist" }],
3232
});
3333

34+
config.external = [...config.external,
35+
"solid-presence",
36+
"solid-prevent-scroll",
37+
/node_modules\/@kobalte/,
38+
/node_modules\/@floating-ui/,
39+
/node_modules\/@solid-primitives/,
40+
/node_modules\/@corvu/,
41+
42+
];
43+
44+
console.log(config);
45+
3446
if (Array.isArray(config.plugins)) {
3547
config.plugins = config.plugins.map(plugin => {
3648
if (plugin.name === "ts") {

packages/kit/src/components/Field/FieldLabel/createFieldLabelProps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { label } from "./FieldLabel.css";
22
import { mergeProps, ValidComponent } from "solid-js";
33
import { mergeClasses } from "../../../utils/css";
4-
import { PolymorphicProps } from "@kobalte/core";
4+
import { PolymorphicProps } from "@kobalte/core/polymorphic";
55

66
export function createFieldLabelProps<TValidComponent extends ValidComponent = "label">(
77
props: PolymorphicProps<TValidComponent>,

packages/kit/src/components/Field/FieldMessage/createFieldMessageProps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { description } from "./FieldMessage.css";
22
import { mergeProps, splitProps, ValidComponent } from "solid-js";
33
import { mergeClasses } from "../../../utils/css";
4-
import { PolymorphicProps } from "@kobalte/core";
4+
import { PolymorphicProps } from "@kobalte/core/polymorphic";
55

66
export function createFieldMessageProps<TComponent extends ValidComponent = "div">(
77
props: PolymorphicProps<TComponent>,

packages/kit/src/components/NumberField/NumberFieldLabel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TextField as KTextField } from "@kobalte/core";
1+
import { TextField as KTextField } from "@kobalte/core/text-field";
22
import { createFieldLabelProps } from "../Field/FieldLabel/createFieldLabelProps";
33

44
type TextFieldLabelProps = Parameters<(typeof KTextField)["Label"]>[0] & {};

packages/kit/src/components/NumberField/NumberFieldMessage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TextField as KTextField } from "@kobalte/core";
1+
import { TextField as KTextField } from "@kobalte/core/text-field";
22
import { createFieldMessageProps } from "../Field/FieldMessage/createFieldMessageProps";
33

44
type TextFieldLabelProps = Parameters<(typeof KTextField)["Description"]>[0] & {};

0 commit comments

Comments
 (0)