fix: cannot use __dirname with .mts and latest Node

This commit is contained in:
Ashley Engelund (weedySeaDragon @ github)
2022-09-07 11:01:50 -07:00
parent c6ce5a80fa
commit d0074356e9

View File

@@ -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...');