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...');
|
||||
|
|
Loading…
Reference in New Issue