mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01: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