Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export default tseslint.config(
'**/dist/',
'**/node_modules/',
'temp/',
'packages/openapi-ts/src/legacy/handlebars/compiled/**/*.js',
'packages/openapi-ts/src/legacy/handlebars/templates/**/*.hbs',
'packages/openapi-ts/templates/**/*.hbs',
'**/test/e2e/generated/',
'**/test/generated/',
'**/__snapshots__/',
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
"files": [
"bin",
"dist",
"templates",
"LICENSE.md"
],
"scripts": {
"build": "tsup && pnpm check-exports",
"check-exports": "attw --pack .",
"dev": "tsup --watch",
"handlebars": "node src/legacy/handlebars/handlebars.cjs",
"prepublishOnly": "pnpm build",
"test:coverage": "vitest run --config vitest.config.unit.ts --coverage",
"test:e2e": "vitest run --config vitest.config.e2e.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const createClient = async (
Performance.end('config');

Performance.start('handlebars');
const templates = registerHandlebarTemplates();
const templates = await registerHandlebarTemplates();
Performance.end('handlebars');

const clients = await Promise.all(
Expand Down
2 changes: 2 additions & 0 deletions packages/openapi-ts/src/initConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export const initConfigs = async (
exportCore = true,
name,
request,
templatesPath,
useOptions = true,
} = userConfig;

Expand Down Expand Up @@ -311,6 +312,7 @@ export const initConfigs = async (
name,
output,
request,
templatesPath,
useOptions,
watch: getWatch({ ...userConfig, input }),
});
Expand Down
Loading
Loading