mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-02 23:26: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) */
|
/** Main method (entry point) */
|
||||||
(async () => {
|
(async () => {
|
||||||
const sourceDirGlob = join(__dirname, SOURCE_DOCS_DIR, '**');
|
const sourceDirGlob = join('.', SOURCE_DOCS_DIR, '**');
|
||||||
const includeFilesStartingWithDot = true;
|
const includeFilesStartingWithDot = true;
|
||||||
|
|
||||||
console.log('Transforming markdown files...');
|
console.log('Transforming markdown files...');
|
||||||
|
Reference in New Issue
Block a user