-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial section to use Typia on Turborepo (Monorepo) #865
Comments
Note : I additionally created a minimal Turborepo + Sveltekit repo but I have a bug, currently it does not work https://github.com/MarArMar/TurboTest/tree/main And created an issue about this |
As I've not used turbo and svelte at all, and maybe no change to use it in my project. hope someone to help. |
Ok I will share my progress on this |
Ok here is a working example : Turborepo X Sveltekit X Typia Main thing was the vite config : import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import typescript from "rollup-plugin-typescript2";
export default defineConfig({
// esbuild: false,
plugins: [
sveltekit(),
typescript({
check: false,
}),
],
}); Have to not set esbuild: false else loading of workspace modules in ts do not work |
Ok actually seems to give false positive results at described in #873 |
Will update on my progress : currently have a monorepo / turborepo that supports Typia in TS files with workspace imports of TS files, as inside Sveltekit with workspace imports of JS files, But once typia is installed I cannot import TS files from other modules anymore so not yet done |
Ok finally made it work !!!! https://github.com/MarArMar/ExampleTurboSvelteKitTypiaTS had to do this in vite.config.ts :
|
Should I do a PR for a new doc in https://github.com/samchon/typia/tree/master/website/pages/docs/utilization ? Was thinking of a "Monorepo with Vite" doc page For Monorepo with TS I believe it worked instantly for me Also maybe a "Svelte" doc page, specifying you can import TS files using Typia in svelte files but not use it directly inside svelte files |
Great job! I think here "setup" page would be better: |
Will try to do that this Week-end |
* Complement #865 - documentation * A little bit detailing --------- Co-authored-by: Jeongho Nam <samchon.github@gmail.com>
I am using turborepo
I think a Typia tutorial section on how to install it for a turbo monorepo would be best
What I ended up doing is :
But cannot verify if it worked because I used Sveltekit and Typia does not seem to support svelte yet
The text was updated successfully, but these errors were encountered: