diff --git a/package.json b/package.json index c825f2c..2dc7573 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schema-to-erd", - "version": "2.0.3", + "version": "2.0.4", "description": "Generate ERD UML file from Schema DDL file", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/src/parse_ddl.ts b/src/parse_ddl.ts index ef81d8b..a2da1bd 100644 --- a/src/parse_ddl.ts +++ b/src/parse_ddl.ts @@ -2,7 +2,7 @@ import { Parser } from 'sql-ddl-to-json-schema'; import assert from 'assert'; import { JSONSchema7 } from 'json-schema'; import config from './unparsable.config'; -import { parseDdlType } from './index.d'; +import { parseDdlType } from './types'; const parser = new Parser('mysql'); diff --git a/src/plantuml_table.ts b/src/plantuml_table.ts index c26c1e4..fae779c 100644 --- a/src/plantuml_table.ts +++ b/src/plantuml_table.ts @@ -1,4 +1,4 @@ -import { parseDdlType } from './index.d'; +import { parseDdlType } from './types'; function generateEntity( tableName: string, diff --git a/src/schema_to_erd.ts b/src/schema_to_erd.ts index 73e14e5..600ef89 100644 --- a/src/schema_to_erd.ts +++ b/src/schema_to_erd.ts @@ -3,7 +3,7 @@ import path from 'path'; import { PathLike } from 'node:fs'; import parseDdl from './parse_ddl'; import generatePlantUml from './plantuml_table'; -import { parseDdlType, pumlOutputType } from './index.d'; +import { parseDdlType, pumlOutputType } from './types'; export default async function schemaToErd( schemaFilePath: PathLike, diff --git a/src/index.d.ts b/src/types.d.ts similarity index 100% rename from src/index.d.ts rename to src/types.d.ts