From 12657dab5c79c03e2b76b5d6406487a00a525deb Mon Sep 17 00:00:00 2001 From: jtidwe11 Date: Fri, 16 Aug 2024 03:44:08 -0500 Subject: [PATCH 1/2] docs: update vite instructions (#713) If compiler options are only added to just tsconfig.json, module resolution fails for `@/lib/utils` during build. --- apps/www/src/content/docs/installation/vite.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/www/src/content/docs/installation/vite.md b/apps/www/src/content/docs/installation/vite.md index 97011ae0..a06440a4 100644 --- a/apps/www/src/content/docs/installation/vite.md +++ b/apps/www/src/content/docs/installation/vite.md @@ -91,6 +91,12 @@ Install `tailwindcss` and its peer dependencies, then generate your `tailwind.co ### Edit tsconfig/jsconfig.json + + +If you're using TypeScript, the current version of Vite splits configuration into three files, requiring the same change for `tsconfig.app.json`. + + + Add the code below to the compilerOptions of your `tsconfig.json` or `jsconfig.json` so your app can resolve paths without error ```json {4-7} From 3dc6e10897bc3614149cbc9c77b5946c1544cff8 Mon Sep 17 00:00:00 2001 From: Sinh Date: Mon, 19 Aug 2024 23:05:37 +0700 Subject: [PATCH 2/2] chore: update autoform emit submit event type(#716) (#717) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If compiler options are only added to just tsconfig.json, module resolution fails for `@/lib/utils` during build. - [ ] ๐Ÿ“– Documentation (updates to the documentation, readme or JSdoc annotations) - [ ] ๐Ÿž Bug fix (a non-breaking change that fixes an issue) - [x] ๐Ÿ‘Œ Enhancement (improving an existing functionality like performance) - [ ] โœจ New feature (a non-breaking change that adds functionality) - [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries) - [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change) The change is mean to allow event type to support `values: z.infer`, not only `values: Record` Resolves #716 - [x] I have linked an issue or discussion. - [ ] I have updated the documentation accordingly. --- apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue | 2 +- apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue b/apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue index 3cdf2c89..f836bbe6 100644 --- a/apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue +++ b/apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue @@ -17,7 +17,7 @@ const props = defineProps<{ }>() const emits = defineEmits<{ - submit: [event: GenericObject] + submit: [event: z.infer] }>() const { dependencies } = toRefs(props) diff --git a/apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue b/apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue index 6eb3ce5f..02581961 100644 --- a/apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue +++ b/apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue @@ -17,7 +17,7 @@ const props = defineProps<{ }>() const emits = defineEmits<{ - submit: [event: GenericObject] + submit: [event: z.infer] }>() const { dependencies } = toRefs(props)