mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
chore: Fix imports
This commit is contained in:
@@ -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);
|
||||
|
@@ -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"
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user