Skip to content

Commit

Permalink
docs(changeset): Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Sep 13, 2024
1 parent 8887bd0 commit 5fa21bb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-snakes-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@codeui/kit": patch
---

Fix build
16 changes: 14 additions & 2 deletions packages/kit/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,22 @@ function tsTypes() {

const config = withSolid({
input: "src/index.tsx",
targets: ["esm"],
output: [{ preserveModules: true, dir: "dist/esm" }],
targets: ["esm", "cjs"],
output: [{ preserveModules: true, dir: "dist" }],
});

config.external = [...config.external,
"solid-presence",
"solid-prevent-scroll",
/node_modules\/@kobalte/,
/node_modules\/@floating-ui/,
/node_modules\/@solid-primitives/,
/node_modules\/@corvu/,

];

console.log(config);

if (Array.isArray(config.plugins)) {
config.plugins = config.plugins.map(plugin => {
if (plugin.name === "ts") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { label } from "./FieldLabel.css";
import { mergeProps, ValidComponent } from "solid-js";
import { mergeClasses } from "../../../utils/css";
import { PolymorphicProps } from "@kobalte/core";
import { PolymorphicProps } from "@kobalte/core/polymorphic";

export function createFieldLabelProps<TValidComponent extends ValidComponent = "label">(
props: PolymorphicProps<TValidComponent>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { description } from "./FieldMessage.css";
import { mergeProps, splitProps, ValidComponent } from "solid-js";
import { mergeClasses } from "../../../utils/css";
import { PolymorphicProps } from "@kobalte/core";
import { PolymorphicProps } from "@kobalte/core/polymorphic";

export function createFieldMessageProps<TComponent extends ValidComponent = "div">(
props: PolymorphicProps<TComponent>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TextField as KTextField } from "@kobalte/core";
import { TextField as KTextField } from "@kobalte/core/text-field";
import { createFieldLabelProps } from "../Field/FieldLabel/createFieldLabelProps";

type TextFieldLabelProps = Parameters<(typeof KTextField)["Label"]>[0] & {};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TextField as KTextField } from "@kobalte/core";
import { TextField as KTextField } from "@kobalte/core/text-field";
import { createFieldMessageProps } from "../Field/FieldMessage/createFieldMessageProps";

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

0 comments on commit 5fa21bb

Please sign in to comment.