api-typescript-generator
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -199,3 +199,3 @@ "use strict"; | ||
const registerFunctionName = generateRegisterValidationSchemasFunctionName(depInfo.scope); | ||
(0, dependencies_1.addDependencyImport)(dependencyImports, depPath, depInfo.modelName, { | ||
(0, dependencies_1.addDependencyImport)(dependencyImports, depPath, registerFunctionName, { | ||
kind: 'value', | ||
@@ -202,0 +202,0 @@ entity: { name: registerFunctionName } |
{ | ||
"name": "api-typescript-generator", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "Generates OpenAPI TypeScript client. Extremely fast and flexible.", | ||
@@ -42,3 +42,3 @@ "license": "MIT", | ||
"precheck": "tsc --noEmit && jest && ", | ||
"build": "rimraf lib && tsc -p tsconfig.build.json && cp -R src/schema-to-typescript/common/core lib/schema-to-typescript/common/core && cp -R src/schema-to-typescript/common/validation-providers/zod-validation-provider/{format-error-message,make-extensible}.ts lib/schema-to-typescript/common/validation-providers/zod-validation-provider", | ||
"build": "rimraf lib && tsc -p tsconfig.build.json && cp -R src/schema-to-typescript/common/core lib/schema-to-typescript/common/core && cp -R src/schema-to-typescript/common/validation-providers/zod-validation-provider/*-*.ts lib/schema-to-typescript/common/validation-providers/zod-validation-provider", | ||
"build:docs": "rm -Rf docs && typedoc --exclude test --excludeInternal --excludeExternals --disableSources --plugin typedoc-plugin-markdown --entryDocument ../README.md --out docs src/index.ts src/openapi.ts src/openapi-client.ts && ts-node tools/cleanup-docs.ts", | ||
@@ -45,0 +45,0 @@ "prepublishOnly": "npm run build && npm run build:docs", |
@@ -305,3 +305,3 @@ import path from 'path'; | ||
const registerFunctionName = generateRegisterValidationSchemasFunctionName(depInfo.scope); | ||
addDependencyImport(dependencyImports, depPath, depInfo.modelName, { | ||
addDependencyImport(dependencyImports, depPath, registerFunctionName, { | ||
kind: 'value', | ||
@@ -308,0 +308,0 @@ entity: {name: registerFunctionName} |
671904