From 6fc533bbf53a818c7b8c9bc14f555473276934ce Mon Sep 17 00:00:00 2001 From: "K.Himeno" <6715229+Himenon@users.noreply.github.com> Date: Sun, 4 Feb 2024 00:25:55 +0900 Subject: [PATCH 1/3] chore: update --- README.md | 6 +- docs/ja/README-ja.md | 6 +- examples/apis/codegen.ts | 6 +- examples/apis/package.json | 18 +- examples/apis/pnpm-lock.yaml | 315 +++++++++--------- examples/pure-js/gen.js | 1 + examples/pure-js/package.json | 2 +- examples/pure-js/pnpm-lock.yaml | 17 +- examples/readme-sample/ast-code-template.ts | 2 +- .../readme-sample/text-base-code-template.ts | 2 +- .../use-extract-schema-params.ts | 2 +- 11 files changed, 190 insertions(+), 187 deletions(-) diff --git a/README.md b/README.md index 650b5ac4..162fb539 100644 --- a/README.md +++ b/README.md @@ -329,7 +329,7 @@ fs.writeFileSync("output/file/name", code, { encoding: "utf-8" }); A self-defined code generator can return an array of `string`. ```ts -import * as Types from "@himenon/openapi-typescript-code-generator/types"; +import * as Types from "@himenon/openapi-typescript-code-generator/dist/types"; interface Option { showLog?: boolean; @@ -354,7 +354,7 @@ The self-defined code generator can accept parameters extracted from OpenAPI Sch See Type definitions for available parameters. ```ts -import * as Types from "@himenon/openapi-typescript-code-generator/types"; +import * as Types from "@himenon/openapi-typescript-code-generator/dist/types"; interface Option {} @@ -442,7 +442,7 @@ You can extend your code using the API of TypeScript AST. You can directly use the API of TypeScript AST or use the wrapper API of TypeScript AST provided by this library. ```ts -import * as Types from "@himenon/openapi-typescript-code-generator/types"; +import * as Types from "@himenon/openapi-typescript-code-generator/dist/types"; import { TsGenerator } from "@himenon/openapi-typescript-code-generator/dist/api"; interface Option {} diff --git a/docs/ja/README-ja.md b/docs/ja/README-ja.md index 70bd0c91..26c83dcb 100644 --- a/docs/ja/README-ja.md +++ b/docs/ja/README-ja.md @@ -325,7 +325,7 @@ fs.writeFileSync("output/file/name", code, { encoding: "utf-8" }); 独自定義のコードジェネレーターは`string`の配列を返すことができます。 ```ts -import * as Types from "@himenon/openapi-typescript-code-generator/types"; +import * as Types from "@himenon/openapi-typescript-code-generator/dist/types"; interface Option { showLog?: boolean; @@ -350,7 +350,7 @@ const customGenerator: Types.CodeGenerator.CustomGenerator