]> Piment Noir Git Repositories - poolifier.git/blobdiff - typedoc.mjs
build(deps): bump the regular group across 11 directories with 1 update (#2926)
[poolifier.git] / typedoc.mjs
index b9f9cc9911f02ba4db340b427d32da9b244239d4..328fb0c8e7fb6028d705b7ae406e13aaec164ff0 100644 (file)
@@ -1,11 +1,11 @@
+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 { 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'), {
 
 try {
   mkdirSync(join(dirname(fileURLToPath(import.meta.url)), 'tmp'), {
-    recursive: true
+    recursive: true,
   })
   const markdownFiles = readdirSync(
     join(dirname(fileURLToPath(import.meta.url)), 'docs')
   })
   const markdownFiles = readdirSync(
     join(dirname(fileURLToPath(import.meta.url)), 'docs')
@@ -16,7 +16,7 @@ try {
       join(dirname(fileURLToPath(import.meta.url)), 'tmp', markdownFile)
     )
   }
       join(dirname(fileURLToPath(import.meta.url)), 'tmp', markdownFile)
     )
   }
-  execSync('npx typedoc', { stdio: 'inherit' })
+  execSync('pnpm exec typedoc', { stdio: 'inherit' })
   for (const markdownFile of markdownFiles) {
     copyFileSync(
       join(dirname(fileURLToPath(import.meta.url)), 'tmp', markdownFile),
   for (const markdownFile of markdownFiles) {
     copyFileSync(
       join(dirname(fileURLToPath(import.meta.url)), 'tmp', markdownFile),
@@ -24,8 +24,8 @@ try {
     )
   }
   rmSync(join(dirname(fileURLToPath(import.meta.url)), 'tmp'), {
     )
   }
   rmSync(join(dirname(fileURLToPath(import.meta.url)), 'tmp'), {
+    force: true,
     recursive: true,
     recursive: true,
-    force: true
   })
 } catch (e) {
   console.error(e)
   })
 } catch (e) {
   console.error(e)