X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=typedoc.mjs;h=86f160da4960b68f9ec2c39a5b053ae14354372a;hb=HEAD;hp=1d74fb4e16d20aeb63dfd7ad8e7563130425378f;hpb=8ebe6c308dc1fc3202980126da043b2855d24780;p=poolifier.git diff --git a/typedoc.mjs b/typedoc.mjs index 1d74fb4e..cc33cb68 100644 --- a/typedoc.mjs +++ b/typedoc.mjs @@ -1,15 +1,15 @@ +import { execSync } from 'node:child_process' import { copyFileSync, mkdirSync, readdirSync, rmSync } from 'node:fs' import { dirname, join } from 'node:path' import { fileURLToPath } from 'node:url' -import { execSync } from 'node:child_process' try { mkdirSync(join(dirname(fileURLToPath(import.meta.url)), 'tmp'), { - recursive: true + recursive: true, }) const markdownFiles = readdirSync( join(dirname(fileURLToPath(import.meta.url)), 'docs') - ).filter((file) => file.endsWith('.md')) + ).filter(file => file.endsWith('.md')) for (const markdownFile of markdownFiles) { copyFileSync( join(dirname(fileURLToPath(import.meta.url)), 'docs', markdownFile), @@ -25,7 +25,7 @@ try { } rmSync(join(dirname(fileURLToPath(import.meta.url)), 'tmp'), { recursive: true, - force: true + force: true, }) } catch (e) { console.error(e)