chore: Fix imports

This commit is contained in:
Sidharth Vinod 2023-08-28 14:19:43 +05:30
parent 258dbf30e0
commit 146364aa67
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import type { Pie } from 'mermaid-parser';
import type { Pie, PieSection } from 'mermaid-parser';
import { parse } from 'mermaid-parser';
import { log } from '../../logger.js';
@ -6,7 +6,6 @@ import type { ParserDefinition } from '../../diagram-api/types.js';
import { populateCommonDb } from '../common/populateCommonDb.js';
import type { PieDB } from './pieTypes.js';
import { db } from './pieDb.js';
import { PieSection } from 'mermaid-parser/src/index.js';
function populateDb(ast: Pie, db: PieDB) {
populateCommonDb(ast, db);

View File

@ -12,7 +12,7 @@
"type": "module",
"exports": {
".": {
"import": "./dist/mermaid-parser.esm.mjs",
"import": "./dist/mermaid-parser.core.mjs",
"types": "./dist/src/index.d.ts"
}
},