{
  "name": "mermaid-ast",
  "version": "0.8.2",
  "description": "Parse and render Mermaid diagrams to/from AST",
  "type": "module",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "exports": {
    ".": {
      "import": "./dist/index.js",
      "types": "./dist/index.d.ts"
    },
    "./parser": {
      "import": "./dist/parser/index.js",
      "types": "./dist/parser/index.d.ts"
    },
    "./renderer": {
      "import": "./dist/renderer/index.js",
      "types": "./dist/renderer/index.d.ts"
    },
    "./types": {
      "import": "./dist/types/index.js",
      "types": "./dist/types/index.d.ts"
    }
  },
  "files": [
    "dist",
    "README.md",
    "LICENSE"
  ],
  "scripts": {
    "build": "tsc -p tsconfig.build.json && cp -r src/vendored dist/",
    "test": "bun test",
    "test:unit": "bun test tests/unit",
    "test:roundtrip": "bun test tests/roundtrip",
    "test:compatibility": "bun test tests/compatibility",
    "test:coverage": "bun test --coverage",
    "typecheck": "tsc --noEmit",
    "lint": "biome check",
    "lint:fix": "biome check --write",
    "format": "biome format --write",
    "examples": "bun run scripts/run-examples.ts",
    "sync-parsers": "bun run scripts/sync-parsers.ts",
    "prepublishOnly": "cp ../../README.md . && bun run build && bun run test && bun run lint"
  },
  "keywords": [
    "mermaid",
    "ast",
    "parser",
    "renderer",
    "diagrams",
    "flowchart",
    "sequence-diagram",
    "typescript"
  ],
  "author": "Emily",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/neongreen/mermaid-ast.git"
  },
  "homepage": "https://github.com/neongreen/mermaid-ast#readme",
  "bugs": {
    "url": "https://github.com/neongreen/mermaid-ast/issues"
  },
  "engines": {
    "node": ">=18.0.0"
  },
  "sideEffects": false,
  "devDependencies": {
    "@biomejs/biome": "^2.3.11",
    "@types/bun": "latest",
    "@types/node": "^20.0.0",
    "happy-dom": "^20.3.1",
    "jison": "^0.4.18",
    "mermaid": "^11.12.2",
    "tsx": "^4.19.0",
    "typescript": "^5.7.0"
  },
  "dependencies": {
    "@mermaid-js/parser": "^0.6.3"
  }
}
