From f9a9c7289bc55fd86c3a52ee10b3e2bd7a574a54 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Wed, 5 Jun 2024 23:58:28 +0100 Subject: [PATCH] feat: Simplify Typia setup instructions This commit simplifies the setup instructions for Typia in the README. The changes include: - Replacing multiple npm install commands with a single npx command. - Removing unnecessary ts-patch and ts-node installations. - Updating the link to the setup instructions on the Typia website. --- packages/unplugin-typia/README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/unplugin-typia/README.md b/packages/unplugin-typia/README.md index c7218d84..2c1f48c4 100644 --- a/packages/unplugin-typia/README.md +++ b/packages/unplugin-typia/README.md @@ -24,15 +24,14 @@ npx jsr add -D @ryoppippi/unplugin-typia Then, install `typia`: ```bash +npx jsr add -D @ryoppippi/unplugin-typia npm install --save typia -npm install --save-dev typescript ts-patch ts-node +npx typia setup -npx ts-patch install -npx typia patch +npm run prepare ``` -You should follow the [manual setup instructions](https://typia.io/docs/setup/#manual-setup) on the Typia website. -However, you don't need to add plugins to the `tsconfig.json` file. +You should follow the [Setup Instruction](https://typia.io/docs/setup/#unplugin-typia) on the Typia website. Then, add the unplugin to your favorite bundler: