mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
41a9ac953a
`ts-node-esm` v10.9.1 is not compatible with Node.JS v18.19.0. (cherry picked from commit 4a7e4a3bcb31a5699d892b810134b150c4b5badd)
30 lines
962 B
JSON
30 lines
962 B
JSON
{
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Debug Current Test File",
|
|
"autoAttachChildProcesses": true,
|
|
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
|
|
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
|
|
"args": ["run", "${relativeFile}"],
|
|
"smartStep": true,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Docs generation",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"args": ["scripts/docs.cli.mts"],
|
|
// we'll need to change this to --import in Node.JS v20.6.0 and up
|
|
"runtimeArgs": ["--loader", "tsx/esm"],
|
|
"cwd": "${workspaceRoot}/packages/mermaid",
|
|
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
|
|
"smartStep": true,
|
|
"internalConsoleOptions": "openOnSessionStart"
|
|
}
|
|
]
|
|
}
|