mirror of
https://github.com/mermaid-js/mermaid.git
synced 2026-05-23 20:10:38 +00:00
171 lines
6.5 KiB
JSON
171 lines
6.5 KiB
JSON
{
|
|
"name": "mermaid-monorepo",
|
|
"private": true,
|
|
"version": "10.2.4",
|
|
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
|
|
"type": "module",
|
|
"packageManager": "pnpm@10.30.3+sha512.c961d1e0a2d8e354ecaa5166b822516668b7f44cb5bd95122d590dd81922f606f5473b6d23ec4a5be05e7fcd18e8488d47d978bbe981872f1145d06e9a740017",
|
|
"keywords": [
|
|
"diagram",
|
|
"markdown",
|
|
"flowchart",
|
|
"sequence diagram",
|
|
"gantt",
|
|
"class diagram",
|
|
"git graph"
|
|
],
|
|
"scripts": {
|
|
"clean": "rimraf packages/mermaid/dist",
|
|
"copy:dompurify": "cpy node_modules/.pnpm/dompurify@*/node_modules/dompurify/dist/purify.min.js packages/mermaid/dist/mermaid-local-editor/vendor/ --flat",
|
|
"copy:mermaid": "cpy packages/mermaid/dist/mermaid.min.js packages/mermaid/dist/mermaid-local-editor/vendor/ --flat",
|
|
"copy:editor": "cpy \"packages/mermaid-local-editor/static/**/*\" packages/mermaid/dist/mermaid-local-editor",
|
|
"serve:dist": "sirv packages/mermaid/dist/mermaid-local-editor --port 8081 --dev --no-clear",
|
|
"build": "pnpm build:esbuild && pnpm build:types",
|
|
"build:esbuild": "pnpm run -r clean && tsx .esbuild/build.ts",
|
|
"build:mermaid": "pnpm build:esbuild --mermaid",
|
|
"build:mermaid:full": "pnpm clean && pnpm build:mermaid && pnpm copy:editor && pnpm copy:mermaid && pnpm copy:dompurify && pnpm serve:dist",
|
|
"build:viz": "pnpm build:esbuild --visualize",
|
|
"build:types": "pnpm --filter mermaid types:build-config && tsx .build/types.ts",
|
|
"build:types:watch": "tsc -p ./packages/mermaid/tsconfig.json --emitDeclarationOnly --watch",
|
|
"dev": "tsx .esbuild/server.ts",
|
|
"dev:vite": "tsx .vite/server.ts",
|
|
"dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite",
|
|
"copy-readme": "cpy './README.*' ./packages/mermaid/ --cwd=.",
|
|
"changeset:version": "changeset version && pnpm build && pnpm --filter mermaid run docs:release-version && pnpm --filter mermaid run docs:build && git add --all",
|
|
"changeset:publish": "pnpm copy-readme && changeset publish",
|
|
"lint": "eslint --quiet --stats --cache --cache-strategy content . && pnpm lint:jison && prettier --cache --check .",
|
|
"lint:fix": "eslint --cache --cache-strategy content --fix . && prettier --write . && tsx scripts/fixCSpell.ts",
|
|
"lint:jison": "tsx ./scripts/jison/lint.mts",
|
|
"contributors": "tsx scripts/updateContributors.ts",
|
|
"cypress": "cypress run",
|
|
"cypress:open": "cypress open",
|
|
"coverage:cypress:clean": "rimraf .nyc_output coverage/cypress",
|
|
"coverage:merge": "tsx scripts/coverage.ts",
|
|
"coverage": "pnpm test:coverage --run && pnpm e2e:coverage && pnpm coverage:merge",
|
|
"ci": "vitest run",
|
|
"e2e": "pnpm run load:env -- pnpm run e2e:harness",
|
|
"e2e:coverage": "pnpm run load:env -- pnpm run e2e:harness:coverage",
|
|
"e2e:harness": "start-server-and-test dev http://localhost:${MERMAID_PORT}/ cypress",
|
|
"e2e:harness:coverage": "start-server-and-test dev:coverage http://localhost:${MERMAID_PORT}/ cypress",
|
|
"e2e:scope": "pnpm run load:env -- pnpm run e2e:scope:harness",
|
|
"e2e:scope:harness": "start-server-and-test dev http://localhost:${MERMAID_PORT}/ e2e:scope:run",
|
|
"e2e:scope:run": "tsx scripts/run-e2e-scoped.ts",
|
|
"e2e:scope:detect": "git diff --name-only ${E2E_BASE_REF:-develop} HEAD | node scripts/e2e-diagram-scope.mjs",
|
|
"load:env": "dotenv -e .env",
|
|
"test": "pnpm lint && vitest run",
|
|
"test:watch": "vitest --watch",
|
|
"test:watch:em": "vitest --watch packages/parser/tests/eventmodeling.test.ts",
|
|
"test:coverage": "vitest --coverage",
|
|
"test:check:tsc": "tsx scripts/tsc-check.ts",
|
|
"prepare": "husky && pnpm build",
|
|
"pre-commit": "lint-staged"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/mermaid-js/mermaid"
|
|
},
|
|
"author": "Knut Sveidqvist",
|
|
"license": "MIT",
|
|
"standard": {
|
|
"ignore": [
|
|
"**/parser/*.js",
|
|
"dist/**/*.js",
|
|
"cypress/**/*.js"
|
|
],
|
|
"globals": [
|
|
"page"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@applitools/eyes-cypress": "^3.56.6",
|
|
"@argos-ci/cypress": "^6.2.12",
|
|
"@changesets/changelog-github": "^0.5.2",
|
|
"@changesets/cli": "^2.29.8",
|
|
"@cspell/eslint-plugin": "^9.3.2",
|
|
"@cypress/code-coverage": "^3.14.7",
|
|
"@eslint/js": "^9.26.0",
|
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
"@types/cors": "^2.8.19",
|
|
"@types/express": "^5.0.6",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/jsdom": "^21.1.7",
|
|
"@types/lodash": "^4.17.24",
|
|
"@types/mdast": "^4.0.4",
|
|
"@types/node": "^22.19.18",
|
|
"@types/rollup-plugin-visualizer": "^5.0.3",
|
|
"@vitest/coverage-v8": "^3.2.4",
|
|
"@vitest/spy": "^3.2.4",
|
|
"@vitest/ui": "^3.2.4",
|
|
"ajv": "^8.17.1",
|
|
"chokidar": "3.6.0",
|
|
"concurrently": "^9.2.1",
|
|
"cors": "^2.8.6",
|
|
"cpy-cli": "^5.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"cspell": "^9.3.2",
|
|
"cypress": "^14.5.4",
|
|
"cypress-image-snapshot": "^4.0.1",
|
|
"cypress-split": "^1.24.31",
|
|
"dotenv": "^17.2.4",
|
|
"dotenv-cli": "^11.0.0",
|
|
"esbuild": "^0.25.12",
|
|
"eslint": "^9.26.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-cypress": "^5.3.0",
|
|
"eslint-plugin-html": "^8.1.4",
|
|
"eslint-plugin-jest": "^29.0.1",
|
|
"eslint-plugin-jsdoc": "^61.1.12",
|
|
"eslint-plugin-json": "^4.0.1",
|
|
"eslint-plugin-lodash": "^8.0.0",
|
|
"eslint-plugin-markdown": "^5.1.0",
|
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
"express": "^5.2.1",
|
|
"globals": "^16.4.0",
|
|
"globby": "^14.1.0",
|
|
"husky": "^9.1.7",
|
|
"jest": "^30.1.3",
|
|
"jison": "^0.4.18",
|
|
"js-yaml": "^4.1.1",
|
|
"jsdom": "^26.1.0",
|
|
"langium-cli": "^4.2.1",
|
|
"lint-staged": "^16.1.6",
|
|
"markdown-table": "^3.0.4",
|
|
"nyc": "^17.1.0",
|
|
"path-browserify": "^1.0.1",
|
|
"playwright": "^1.58.2",
|
|
"prettier": "^3.6.2",
|
|
"prettier-plugin-jsdoc": "^1.3.3",
|
|
"rimraf": "^6.0.1",
|
|
"rollup-plugin-visualizer": "^6.0.11",
|
|
"sirv-cli": "^3.0.1",
|
|
"start-server-and-test": "^2.1.5",
|
|
"tslib": "^2.8.1",
|
|
"tsx": "^4.20.6",
|
|
"typescript": "~5.8.3",
|
|
"typescript-eslint": "^8.38.0",
|
|
"vite": "^7.3.3",
|
|
"vite-plugin-istanbul": "^7.0.0",
|
|
"vitest": "^3.2.4"
|
|
},
|
|
"nyc": {
|
|
"report-dir": "coverage/cypress"
|
|
},
|
|
"pnpm": {
|
|
"patchedDependencies": {
|
|
"roughjs": "patches/roughjs.patch"
|
|
},
|
|
"onlyBuiltDependencies": [
|
|
"canvas",
|
|
"cypress",
|
|
"esbuild",
|
|
"unrs-resolver"
|
|
],
|
|
"ignoredBuiltDependencies": [
|
|
"sharp",
|
|
"vue-demi"
|
|
]
|
|
}
|
|
}
|