From 7b58c95e5e894c754a79b59692cd773bd2c69b49 Mon Sep 17 00:00:00 2001 From: Stijn Van Hulle Date: Wed, 13 Dec 2023 15:20:07 +0100 Subject: [PATCH] chore: rebuild --- docs/blog/benefits-of-templates.md | 2 +- packages/cli/src/utils/getCosmiConfig.ts | 3 --- pnpm-lock.yaml | 10 +++++----- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/blog/benefits-of-templates.md b/docs/blog/benefits-of-templates.md index 1734e6cb9..61fa51899 100644 --- a/docs/blog/benefits-of-templates.md +++ b/docs/blog/benefits-of-templates.md @@ -19,7 +19,7 @@ This made us wonder if it was possible to use React and JSX to create our templa A template engine is a software program designed to combine templates with a data model to produce a document or output. The language used to write these templates is called a template language. The resulting document can be a web page, a document, or even source code. One specific use case for template engines is source code generation. -Some well known template engines are [Mustache](https://mustache.github.io/), [Handlebars](https://handlebarsjs.com/), and [EJS](https://ejs.co/). To create Javascript/ you can also use the [TypesScript compiler API](https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API) to create JavaScript/TypeScript and the OpenApi TypeScript generator uses [Handlebars](https://handlebarsjs.com/). +Some well known template engines are [Mustache](https://mustache.github.io/), [Handlebars](https://handlebarsjs.com/), and [EJS](https://ejs.co/). To create JavaScript/ you can also use the [TypesScript compiler API](https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API) to create JavaScript/TypeScript and the OpenAPI TypeScript generator uses [Handlebars](https://handlebarsjs.com/). ### What is source code generation? diff --git a/packages/cli/src/utils/getCosmiConfig.ts b/packages/cli/src/utils/getCosmiConfig.ts index 33b9b0fc3..cbcb0b166 100644 --- a/packages/cli/src/utils/getCosmiConfig.ts +++ b/packages/cli/src/utils/getCosmiConfig.ts @@ -51,9 +51,6 @@ export async function getCosmiConfig(moduleName: string, config?: string): Promi ], loaders: { '.ts': tsLoader, - '.js': tsLoader, - '.mjs': tsLoader, - '.cjs': tsLoader, }, }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bef6ce168..6e8dacecf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -467,7 +467,7 @@ importers: version: 8.0.1(@microsoft/api-extractor@7.38.5)(ts-node@10.9.2)(typescript@5.3.3) devDependencies: '@types/react': - specifier: ^18.2.45 + specifier: ^18.2.43 version: 18.2.45 '@types/react-dom': specifier: ^18.2.17 @@ -525,7 +525,7 @@ importers: version: 8.0.1(@microsoft/api-extractor@7.38.5)(ts-node@10.9.2)(typescript@5.3.3) devDependencies: '@types/react': - specifier: ^18.2.45 + specifier: ^18.2.43 version: 18.2.45 '@types/react-dom': specifier: ^18.2.17 @@ -927,6 +927,9 @@ importers: cosmiconfig: specifier: ^9.0.0 version: 9.0.0(typescript@5.3.3) + esbuild: + specifier: ^0.19.7 + version: 0.19.7 execa: specifier: ^8.0.1 version: 8.0.1 @@ -942,9 +945,6 @@ importers: tinyrainbow: specifier: ^1.1.1 version: 1.1.1 - ts-node: - specifier: ^10.9.2 - version: 10.9.2(@types/node@20.10.4)(typescript@5.3.3) devDependencies: '@kubb/swagger': specifier: workspace:*