mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-31 06:06:44 +02:00
fix: cannot use __dirname with .mts and latest Node
This commit is contained in:

parent
c6ce5a80fa
commit
d0074356e9
@@ -190,7 +190,7 @@ const transformHtml = (filename: string) => {
|
||||
|
||||
/** Main method (entry point) */
|
||||
(async () => {
|
||||
const sourceDirGlob = join(__dirname, SOURCE_DOCS_DIR, '**');
|
||||
const sourceDirGlob = join('.', SOURCE_DOCS_DIR, '**');
|
||||
const includeFilesStartingWithDot = true;
|
||||
|
||||
console.log('Transforming markdown files...');
|
||||
|
Reference in New Issue
Block a user